# Tank Trouble (OLD)

**URL:** https://forum.makecode.com/t/tank-trouble-old/4175
**Category:** Show & Tell
**Tags:** game
**Created:** [October 30, 2020, 12:27am UTC](https://forum.makecode.com/t/tank-trouble-old/4175 "2020-10-30T00:27:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![charliegregg](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/charliegregg/32/2411_2.png) [@charliegregg](https://forum.makecode.com/u/charliegregg)
#### Post date: [October 30, 2020, 12:27am UTC](https://forum.makecode.com/t/tank-trouble-old/4175/1 "2020-10-30T00:27:31Z")

</div>

I unearthed one of my old games while working on my previous post so I updated a few things and here it is:

[Tank Trouble (OLD)](https://makecode.com/_dbWPh2hVHfaJ)

Code is very sloppy (pls don’t look at it 😞 )

---

<div class="post-metadata">

### Author: ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)
#### Post date: [October 30, 2020, 8:20pm UTC](https://forum.makecode.com/t/tank-trouble-old/4175/2 "2020-10-30T20:20:16Z")

</div>

I love how the projectiles bounce of the walls, and that you can shoot yourself. You obviously know how to program as that is a lot of Javascript; so the code is NOT sloppy.

---

<div class="post-metadata">

### Author: ![charliegregg](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/charliegregg/32/2411_2.png) [@charliegregg](https://forum.makecode.com/u/charliegregg)
#### Post date: [October 31, 2020, 12:14am UTC](https://forum.makecode.com/t/tank-trouble-old/4175/3 "2020-10-31T00:14:40Z")

</div>

Yes it is keep track of the direction using a number between 1 - 8 i think (the only cool part is that even if you hit the barrel on your tank u die, oh also It has no sprites only an image being drawn on.)
