Java GUI program that enables the user to create maps for 2d games with ease.
- Open the Map_Maker.jar file.
- Select a block by left clicking a sprite from the sprite sheet on the right. ( You can scroll up / down to reveal more sprites )
- Click / Drag your mouse on the grid to draw.
- Delete blocks by right clicking / draging your mouse over them.
- After finishing the map, make sure to save it by clicking the "Save Map" button on the top right.
- Use the extra features for better control, ease of use, and over all a better experience.
Please load the "Examle_Map.txt" for reference
- Importing / Exporting - Enable's saving and loading of maps.
- Map Resizing - Scale the map size to the perfect size for your game.
- Zoom In/Out - Uses the scroll wheel, to zoom in/out.
- Block Picker Mode - Enable's selection of a block to draw with, from the grid.
- Hand Mode - Enable's movement of the grid.
* Secret Options - Enable's the user to see the current modes selected.
On the top right corner of the window, there are 2 button that control the importing / exporting of the map.
The "Load Map" button corresponds to importing the saved map.
The "Save Map" button corresponds to exporting of the map.
To import a map, click on the "Load Map" button, search for your saved map, and click open.
To export a map, click on the "Save Map" button, and a new file will be created in the directory that the program was lanuched from. ( The exported file name "Map.txt" )
On the top right corner of the window, there are 2 text fields. ( Width & Height )
Enter the width and height of the grid, then click the "Resize Grid" button.
When hovering on the grid simply use your scroll wheel, to zoom in/out of the grid.
When activated the user can select a block from the grid, and can then start drawing with it.
- Press 'b' to activate / deactivate.
When activated, clicking on the grid will "catch" the grid at that point, and you will be able to move the grid freely.
- Press 'v' to activate / deactivate.
This mode is used to clear up space in the window.
When activated you will be able to see a menu with all the modes, and their current status.
- Press 'o' to reveal / hide the menu.
Resized your sprite sheet width to 256px. ( The height isn't a factor )
Each sprite should be 64x64.
Change your sprite sheet name to : 'Sprite.png'
Lastly replace the file in './src/ResourcePack/', with your file.
Note :
- The sprite's top column and the left row are used as a separators. ( each sprite is actually 63x63 with a buffer at the top and left )
JavaFX - The GUI framework used.