Improving the AI logic
I’ve been tweaking the logic of the computer-controlled players.
To avoid giving bots an unfair advantage, the AI logic controls the bees in the same way as the players do: by feeding game controller inputs into the code that animates the bees. Pico-8 does not support analogue game controllers: directional controls are either on or off. A directional input accelerates the bee in that direction, rather than move it by a fixed amount. As a result, the AI bots would sometimes overshoot their targets, accelerate too much the other way, overshoot again, and again, and again, and end up circling their target, never able to reach it.
I changed the AI to not accelerate the bee when it was close enough that it could “glide” to its target point. It’s not perfect – I used a heuristic instead of working out the proper maths – but seems to have eliminated the circling problem.
The Color of Honey
A fast-paced game of action and tactics for one to four players
Status | In development |
Author | dredds |
Genre | Action |
Tags | Local Co-Op, Multiplayer, party-game, PICO-8, Pixel Art, Procedural Generation, Singleplayer, Tactical |
Languages | English |
More posts
- Improved "Game Over" presentation11 days ago
- Recording the best times in single-player games13 days ago
- Vindictive AI opponents30 days ago
- Some recent commit messages from the game's Git repository33 days ago
Leave a comment
Log in with itch.io to leave a comment.