Code Monkey home page Code Monkey logo

game-map-maker's Introduction

Game-Map-Maker

Java GUI program that enables the user to create maps for 2d games with ease.

Map_Maker_Example_Map

How to use

  1. Open the Map_Maker.jar file.
  2. Select a block by left clicking a sprite from the sprite sheet on the right. ( You can scroll up / down to reveal more sprites )
  3. Click / Drag your mouse on the grid to draw.
  4. Delete blocks by right clicking / draging your mouse over them.
  5. 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

Features

  • 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.

How to use

Importing / Exporting of the map

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" )

Map Resizing

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.

Zoom In/Out

When hovering on the grid simply use your scroll wheel, to zoom in/out of the grid.

Block Picker Mode

When activated the user can select a block from the grid, and can then start drawing with it.

  • Press 'b' to activate / deactivate.

Hand Mode

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.

Secret Options

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.

How to use my own sprite sheet ?

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 )

Built With

JavaFX - The GUI framework used.

game-map-maker's People

Contributors

edenb-dev avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.