Day 3: animations


Today I worked on animating the enemies, and decreasing the health once they hit the target/homerun. I also implemented the defensive mechanism which generates cash for each 'kill'. However, this one is still buggy.

To put it all together I implemented a simple game loop. The issue I have, is that because this is a terminal based game, each element can only advance by a full cursor-width/character. This means that I have to run the update loop every second or less. Having the input handling during the update loop will probably feel sluggish. So in the future I should decouple the input handling from the game state update. Update and drawing are already decoupled.

Still some bugs I could not squash today. Happy with my progress so far. I hope to iron out the kinks in the defense mechanism, then finish the input handling.

Get defend!