Tuesday 30 July 2013

v0.02A available for download

New version:

- Added A* algo to monsters
- Updated keys: WASD, Cursor, numpad and Vi Key layouts all possible for movement

It still doesnt do much. Just walk around, and watch the monsters follow if you get too close

Check the wiki for download links at:  http://surviverl.shoutwiki.com/wiki/Main_Page

Note: The build runs on both Windows and OSX:

Windows: just double click the .exe
OSX: Use terminal, and cd to the unarchived folder. Then use "mono SurviveRL.Console.exe" to run the game.

New Keys

I've changed the keys, in preparation for tonights new release with monsters chasing the player.

Check the following link for many of the new keys:
http://roguebasin.roguelikedevelopment.org/index.php?title=User_interface_features

A* implemented

I've spent a few hours implementing the first parts of monster AI.

Monsters on the same screen as the player, will look for the shortest path available towards the player.


The red path is the pathfinding from the monster to the player.


From another point.

Technically, I implemented the A* algorithm on a 1D list of tiles. I used the Manhattan Distance to calculate the heuristics for remaining distance to player from monsters along the path. I only check the surrounding tiles, which greatly reduces the time it takes to calculate the path. It's still quite basic compared to many A* possible additions, but works for now.