Schwungus-Software / Bombswab

A game about defusing bombs and/or causing chaos
The Unlicense
0 stars 0 forks source link

Add a minesweeper grid #2

Closed nonk123 closed 10 months ago

nonk123 commented 10 months ago

We could use a quadtree for this, but it isn't going to make the lookup/storage much more efficient. Minesweeper maps are really small anyways, so we'll be writing more code for nothing. Could be done later this way, but for now, a simple grid is enough.

The grid is composed of tiles. A tile can be "opened" to reveal a bomb or an enemy, if present. Tiles are destructible, and that's the whole point of the game. Empty space is considered a tile too. Large empty spaces on the map may be filled with enemies, so be careful when you reveal them!