Over the past couple of days I've been working on a map editor to make creating maps easier. Basically you can select a tile on the right and it will draw on the grid panel. It features drag drawing, a stunning but soothing light purple grid color, and a beautiful translucent highlighter that highlights the tile that your mouse is hovering over. It also has a menu that creates new maps of a specified size and name, and saves and loads as per usual. Still some kinks to work out; the way I have it right now if you try to make a map 300x300 tiles or so java will run out of heap space... D:
I also made some changes to the structure of the main game code so now the map loading is much more efficient. Before each tile held a reference to its image but now all the images are held in a hashmap in the imageloader and each tile just points to the corresponding one, so it can load maps of any size no problem.
Going to China tomorrow morning so it'll be a couple days before I can get back to it.
No comments:
Post a Comment