dhershman1 / tiier

A small game idea written in Elm
MIT License
0 stars 0 forks source link

Grid/Map #6

Open dhershman1 opened 5 years ago

dhershman1 commented 5 years ago

Obviously the most important foundation for this is the Grid system the player and game will live inside. As well as the map behind it.

The idea here is to do something similar to most other crawlers like Binding of Isaac, Moonlighters, etc... A Room based map

So the map itself is a grouping of rooms, each room is it's own grid this removes the need to needing to persist the map as the user moves and uncovers it. This can be applied the "world map" As well, since it can be divided into "tiers" so to speak.

A map is generated and then the player steps into a room which applies the grid, and environment to it.

Note: We should probably make sure the map builds based on screen size, that way the grid is within bounds and doesn't go off screen

So the idea is to use seeds, a map has a seed for what it is, these will remain static (I think) for now. Each map will have a List of randomly generated Room Seeds which is re generated upon entry of a map, there for making all of the rooms re generated, as well as the amount of them random. This of course will be kept within reason. (Need to prevent the first dungeon a user encounters from having like 25 rooms)

dhershman1 commented 5 years ago

A very basic grid generation system is in place. Which generates a fairly basic coordinate driven tabletop grid.

The next task I have is making this grid display as an actual row/column grid on the page to the user.