As you may have seen in the previous screenshots my CRPG game is now provisionally known as Demon’s Eye. This is based on an adventure game I started writing about five years back. Not a very original title but it’s better than calling the project CRPG! Send me your suggestions if you’ve got a better title in mind.
It’s been a while since my last post so what have I been up to? After a slow start I’ve finally started to make a bit of progress. I’d decided to start my coding by putting together a very simple editor which would allow me to start creating maps and building up features as I went along such as item handling and encounters. I really like the idea of a combined editor/play environment so that I can build and test quickly.
This simple example lets you move around the map using the cursor keys and sets up map boundaries. In the example I used an 11×11 map window like Ultima IV but I’ll be making this much larger so you’ll see a much larger portion of the map at one time. It was satisfying to finally see something vaguely game-like on the screen even if there is currently nothing to do. I’m currently thinking through the possibilities for the rest of the display. This will most likely feature character and inventory information on the right hand side in a column with a rectangular message window running along the bottom of the screen . At a resolution of 800×600 that should still leave plenty of space for the tiled map.
First thing I’m planning to work on is putting together a simple map editor. This will allow me to outline some of the main data structures in the game – maps, tiles, items and monsters. It will also give me some hands on experience of working with SFML. I’m intentionally going to keep the game and editor designs and layouts very similar to minimise creating different sets of code for very similar functions. I quite like the idea of building the editor and game engine as a single program so that I can switch between designing and playing with a couple of key presses, hopefully speeding up game development. Editor features will likely include:
- Variable map sizes (max. 256×256) – plenty big enough in my opinion
- On-screen tile display for tile selection
- Map links – link overworld to towns etc
- Load, Save, Play options
- Small tile versions available for overview mode
- Properties for tiles?
I’m in two minds as to whether tile/object properties should be editable through the editor – this might be too much work for me. I’ll have a think about it anyway. Game data will be stored in simple text files for the time being – probably comma separated.