Thursday, 6 November 2008

Return to Alternate Reality

Well it's been a long time since I posted anything on this blog even though there has been a fair bit of progress on the Alternate Reality front in the last year. Whilst I've not done a lot in the last few months I did some good work during the summer and what I've produced to date is far better than what I had created in SDL. The screenshot here is from the City using the original Atari 8bit graphics. I have been very happy using SFML instead of SDL for my media library and so far it has delivered everything it promised. As before I'm concentrating on coding and using the original graphics and sound for the time being so as not to get hung up on editing new graphics all the time. SFML is platform independent with SFML libraries for both Linux and Mac (and lots of bindings) so I'm keen to find a couple of willing people to maintain these versions. Porting should be very easy as there is nothing Windows specific in the project to my knowledge.

So far I've implemented the following features:
  • Improved 3D view window which is larger than the original game
  • Smooth scrolling in the 3D view - finally!
  • Different zones within a map to define different graphics in some areas e.g. Crystal Caverns
  • Dungeon Teleports
  • Dungeon location specific messages
  • Weapons and Wealth status screens
  • On screen Compass
  • Movement around the City or Dungeon 1st level
OK so lots still to do but I'm pleased the smooth scrolling is now working as I expected that I would find this difficult. I need to say thanks to Jim Norris for providing me with the information on the map zones and the full Dungeon teleport data otherwise I wouldn't have been able to complete these parts.

Next thing I would like to do is move all the game data into external data files. Most data is already in this format but some is included in the source files. I'd also like to add a simple option page so that players can choose between The City and The Dungeon. Once these are done I can get down to some interesting bits so that what I've done actually starts to feel like a game!

Friday, 18 January 2008

Alternate Reality and SFML 1.2

Following the release of the SFML 1.2 library I began playing around with my Alternate Reality CRPG remake again. I wanted to use OpenGL to draw the 3D view but be able to use the built in 2D functions of SFML for all the other elements on the screen such as text. I was able to do this successfully and it seems to work pretty well. Previously I had used SDL with OpenGL but I've now transferred all the main code over to SFML. Still lots of code to move over before I've transferred all the functionality of my SDL version. This includes the combat, encounters and character creation sequence. I feel I've done the most tricky bits though!

Saturday, 24 November 2007

Added Tile Properties


It took me a while to sort out the new file format for the terrain objects but I've now got a simple machine/human readable format which I can reuse for the monster and item files. Now that I've done this I've thinking of splitting game objects into 3 different areas - terrain, monsters and items. The map/item format is very simplistic just now so will probably need to be expanded at some point.

As always I'm wasting time changing little image files instead of sticking with a handful of basic tiles and adding features to the editor and game. Anway I finally added some properties for the different types of terrain in the game. Decided to leave out animation and visibility for tiles just now. For now I've kept it very simple with tiles having a small number of properties:

  • Tile no - the image number from the tile sheet
  • Name - a text description for look commands
  • Passable - can the tile normally be walked through
  • Map link - does the tile offer an entrance or exit to another map level (E.g. staircase)

I'd like to really start making Demons Eye feel more like a game. I might add a player status and inventory pages and some simple console style messages. It would also be nice to be able to have a bit of simple treasure hunting and combat!

Saturday, 10 November 2007

Demons - Slow Progress



Progress is slow mainly because I keep going back and fiddling with little things rather than adding new features to the engine. There's still no actual functionality or properties to tiles so this is really something I need to make a start on - it's not difficult.

Anyway there are a few cosmetic changes. I've added an Ultima style border dividing the screen into three main area - overhead view, messages and the character status/inventory browser type area.

The 16x16 font has been replaced with an 8x8 one - currently Joshua Steele's Ultima 4 Upgrade one. I wanted to be able to put quite a lot of textual information on the screen for combat, conversations and intentory details but this was difficult with the larger font and a smaller font also leaves more space for item graphics, status bars or icons which I think will make the display a lot more interesting. This font is good for now but I'll keep my eye open for something a bit more unique.

I've reverted to the David Gervais tileset and RLTiles tileset. Both are good tilesets with plenty of intersting to tiles though there are a number of typical tiles I'll need to create/find elsewhere to complete some content.

Really need to add some simple tile properties. Are tiles passable? Can they be seen through? Do they link to another map? And so on...