Reset button


Last update had me trying to reverse engineer an existing project, but eventually I had to give up on that. I couldn't figure out the code.

Instead I took a step back and looked for another learning resource. I found "Kids Can Code". I think I saw it before and said "I'm not a kid, this ain't for me". However upon checking it again I found it is broken down into smaller chunks than my previous learning resource. This helped me immensely.

So, technical changes: I figured out how to capture a mouse click on a unit, and to also detect a mouse click NOT an a unit. This lets me select and deselect the tanks. This does not sound like much, but I feel like I just took a big step forward.

Onwards to the  controls for this iteration: click one of the tanks, and use arrow keys to move it around. Click somewhere on the other unit, and move it around. Click elsewhere, and arrow keys have no effect.

Not much in terms of game mechanics, but I think I have a solid foundation for my next mechanic. Maybe I'll add a city and allow a tank to capture it.

Enjoy!

Files

tankies-html5.zip Play in browser
Version 9 Jan 03, 2024

Leave a comment

Log in with itch.io to leave a comment.