Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

hmm… so my interpretation is white = void and pink = dungeon.

so the cell (a 3x3) that’s full-pink = inner cell/floor.  a full white cell is void.

The north wall (green) states “select me if I am dungeon and am surrounded by dungeon cell on W,SW,S,SE & E as well as having void to the NW,N & NE”

The south wall is essentially the opposite; void to the SW,S,SE and dungeon everywhere else.

Blue is for a dungeon cell surrounded by void to the full north and south.

The reason I do it like this (and it’s my interpretation of it) is because when you fill in any shape it calcs all the walls out correctly… this includes the code I have to fill in the map by setting all the “dungeon” cells. Its very simple to do this approach in code  

However it sounds like in need two layers - one to fill in just the edges/corners on an upper layer and another under it for the inner layers for the floor? Or maybe floor is everything and the “under wall” tiles are partially transparent?

(2 edits) (+1)

I see.

Why, the tiles are wall/no-wall rather than dungeon/non-dungeon.

For the later we'd have to redraw the tiles.

Alternatively you can figure out which cell is an edge in a separate step - each cell that has any dungeon neighbour that is a non-dungeon would be a wall; set them on a separate layer.


---

> However it sounds like in need two layers - one to fill in just the edges/corners on an upper layer and another under it for the inner layers for the floor?

I think this is consistent with what's in my head:

- LAYER ABOVE: walls
- LAYER BELOW: floors