added tanks from sprig in personal repo

This commit is contained in:
Om Raheja 2024-08-26 11:29:27 -04:00
parent 534a7fc642
commit 84c13286db
3 changed files with 1047 additions and 0 deletions

View File

@ -1,2 +1,20 @@
# tanks # tanks
The best way to show off your sprig to your friends!!
This is a simple multiplayer game where you try to shoot down the enemy tank.
Also available at:
https://github.com/hackclub/sprig/blob/main/games/tanks.js
In the color picker:
AD to move player one cursor.
JL to move player two cursor.
W and I to set READY state for players.
In the actual game:
WASD for player one to move,
IJKL for player two to move.
The game moves the players automatically every 500 ms.
Each keypress shoots a projectile and changes direction.
Shoot the other tank to win!

BIN
demo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

1029
tanks.js Normal file

File diff suppressed because it is too large Load Diff