Tactics battle movement - progress!
OSIR (prototype/engine dev) » Devlog
Success! A basic recursive distance function is working! The monster knows it can move to these locations:
The code is a little inelegant but works . I got the logic from here: http://theliquidfire.com/2015/06/08/tactics-rpg-path-finding/
And a preview without the debug numbers;
There was an issue that it doesn't always "count" the steps in the most efficient way possible, resulting in it incorrectly shortening movement in some cases - I had to add a "checkShortestPath" function specifically for this. Felt messy but I don't think there was any other way.
Once the code is cleaned up and I'm certain it works, I'll share some code and logic behind it.
OSIR (prototype/engine dev)
A (prototype) deep incremental RPG
Status | Prototype |
Author | New Retro Games |
Genre | Role Playing |
Tags | Incremental, Retro, Text based |
Languages | English |
More posts
- First engine test completeDec 23, 2020
- Moving, Attacking (and dying)Dec 21, 2020
- Turn order sortedDec 20, 2020
- Combat Engine basic UI done, on to movementDec 19, 2020
- Resuming after a 2 year break! - Combat EngingeDec 18, 2020
- v0.1.9dMar 28, 2018
- 0.1.9c - bug and issue fixesMar 26, 2018
- v0.1.9b - Graphics, Multiple Enemies, and more!Mar 11, 2018
Leave a comment
Log in with itch.io to leave a comment.