Showing posts with label map editor. Show all posts
Showing posts with label map editor. Show all posts

Friday, 24 April 2015

Dungeon Crawler - C++/SDL - Loading Maps

Very quick update, I've been taking the XML Maps from the Editor in it's current form and loading them into the actual game now, this has required a change of several subsystems inside the Grid/Map loading code.

The most important change has been caching one copy of each image, so minimising memory use, and then customising them at a surface level to add walls, drawing all this once and then just rendering the one single image we hold in RAM, whilst the rest of the images can be dropped out of memory to again free more resources.

Anyway, here's a screen shot of the game (background left) with the map editor open showing the map in design.


Path finding of course routes around the walls, and tiles can be toggles as blocking or not, opening up the ability now to add doors or even hidden/false/magic doors.

Thursday, 23 April 2015

Dungeon Crawler - C++/SDL/C# - Map Editor Updates

So, the Map Editor, I made a brief mention of progress on Tuesday's post, but I've refined a few things, and I'm ready to show you some screenshots of how things look...


Here we see a tile set being imported, and placed down, then I've laid a set of dividers, a divider is a none-crossable wall like structure, but it lets us use a single square as a wall, rather than using a blank gap.


So, hopefully you can see that we can enclose spaces without so much blank black squares.

Which then leads to more complex structures:



The next item I'm literally coding now is a door, which will go into places as highlighted in red here...


Supporting single spans, or double spans...

And of course, once all this is designed into the map editor it's going to be ported into the game itself to give us the basics of the Adventure loading & walk through.