Tank Control

 from Red Blob Games
1 Mar 2023

In 2012 I made some tank-control experiments[1] in Flash. The original goal was to smoothly drive a tank to any given location on the screen. But as I experimented, I also wanted to make it feel like you had some control over the driving system, especially on touch screens. And I wanted to watch NPC tanks to move to targets on the screen. I've missed having these experiments available so I decided to port some of them to HTML5.

Source: tank-control.js

There's a lot of duplicate copy/pasted code in the old project. I mostly ported #3, #6, #7.

Email me , or tweet @redblobgames, or comment: