https://github.com/giuse/roguelike
https://github.com/giuse/roguelike
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/giuse/roguelike
- Owner: giuse
- License: gpl-3.0
- Created: 2014-08-13T09:49:39.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-13T17:58:06.000Z (almost 12 years ago)
- Last Synced: 2023-08-02T14:08:29.325Z (almost 3 years ago)
- Language: Java
- Size: 191 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
roguelike
=========
Trying to put together a roguelike game
---
We start with grid coordinates to simplify the design, but bear in mind we want to switch to hexagons later in the project.
## MAP
### Map description
Actual map:
- header
- file extension is .map
- dot is navigable cell
- white space is ignored
- w is unmovable wall
- m is movable wall
- outside the size we have unmovable wall
### Map example
3
.w.
.w.
...
### Hexagonal map representation
Hexagon space representation as two 2D axes plus one diagonal.
|***
*|***
**|***
---o---
***|**
***|*
***|
Adjacency (and 1-distance) is valid over the two axes and the m=1 diagonal.
### Resources
- [Hexagonal grids](http://www.redblobgames.com/grids/hexagons/)
- [Hex maps on wikipedia](http://en.wikipedia.org/wiki/Hex_map)