Frankly, almost all of the code is based on the tutorial of javidx9.
I've only done the Enemy motion dynamics (it's always headed towards the player), and the Player (tank) motion.
Keys A-S-D-W control acceleration, instead of velocity.