Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.13 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.13 KB

HexTiler

An example hexagon tiling application showcasing the Hexy library.

Alt text

Prerequisites

You need to have python2.7, pygame, and numpy installed.

Using HexTiler

To run the application, execute the hex_tiler.py file.

python2 hex_tiler.py
  • load tilesets with i.
  • load tilemaps with l.
  • save tilemaps with s.
  • < to shift selected tile left.
  • > to shift selected tile right.
  • left click to set a tile.
  • right click to remove a tile.
  • middle click and drag to move camera around.
  • up arrow, down arrow, left arrow, right arrow will also move the camera.

I've included a sample tileset in assets/ called hexes.png. To load it, press i, navigate and open to assets/hexes.png. Click around on the screen to start placing tiles.

I've also included some sample maps in assets/ as well. To load them, press l, navigate to assets/ and load any of the files with the extension .json.

Authors

  • Norbu Tsering

License

This project is licensed under the MIT License - see the LICENSE.md file for details