Tank yourself is an action game, where you defeat endless waves of enemies, gain points and reach a new high score.

The project is a proof-of-concept, created to learn and explore javascript, and to create a game playable in a browser, as opposed to requiring downloading and running an executable file on a device.

How to play

The game is published on itch.io where it can be played for free in a browser. Click the «play on itch.io» below:

Rules

How to spawn enemies?

Enemies spawn in two ways.

  • Random: Enemies will randomly spawn. The chance of spawning increases over time.
  • Fire at walls: Bullets that hit the wall will spawn an enemy seed, which will travel along the edge to the opposite side of the map, then spawning an enemy corresponding with the bullet damage value. Bullets with 1 damage spawn basic enemies, whilst bullets with 2 damage spawn mega enemies.

How to score points?

There are two ways of gaining points:

  • Defeating enemies: Defeated enemies grant points equal to the health-value of the enemy. Enemies spawned from a seed grant double points.
  • Gaining combo-points: Gaining points in rapid succession builds a combo-meter. When the combo-meter expires, the total gained points during that active combo-meter is multiplied with the combo-multiplier. Earning 25 points during a x2 combo-meter, you gain 50 points. Recieving any damage cancels the active combo-meter.

Game over

You start with 3 health. If an enemy reaches you, you’ll take damage equal to the enemy health. When reaching 0 health, it’s game over.

Picking up 15 green coins heals you for 1 health.

Types of enemies

There are three types of enemies.

  • Basic: 1 health
  • Mega: 2 health
  • Giga: 3 health

Types of bullets

You have two bullets:

  • Basic: 1 damage, 2 seconds cooldown
  • Mega: 2 damage, 4 seconds cooldown

Your ammo counter is displayed in the bottom middle of the screen.