This little project was made by two people just for fun. We didn't use any additional libraries or frameworks, everything was created by our own hands. In this game you need to play with your friend. One gonna be attacker and the other a defender. And before all we want to apologize for html to frontenders, cause it's new for us, and it's written really terrible :(
You can start playing this awesome game by the following ways:
Just click the next link and start playing.
Firstly you need to follow by the next link:
https://github.com/Riborok/2DTanks
You will see github repository of this game. Then click on the green button "Code" and then click "Download ZIP":
After that unzip to any convenient folder and go to it. Then launch index.html.
First of all when you launch index.html you will see the next window:
There you can choose tank parts for the attacker. Choosing different parts will be assembled tank, whatever you want. Also, you can choose color for your tank.
Then you need to click accept button, assemble tank for the defender, and again click accept button.
After that you will see the field:
On this window you can see some objects:
- Walls
- Objects, that will block your way
- Tanks
- These you assembled in the last stage
- Keys
- Boxes
- Header
- Elapsed time and collected keys amount are located here
The aim of the attacker is to collect 3 keys in three locations. After collecting all the keys on the one location, you will pass to the next and elapsed time will be reset.
Defender’s goal is to prevent key collection up to 300 seconds. So the defender will have 3 attempts, while the attacker have only one.
On the field you will see some coloured boxes that sometimes spawning on the random places. Each box have relevant bullet that have different stats and some of them - special abilities. In the next table you can see these bullets, it's characteristics and boxes, that contain them:
Except the desert you saw earlier:
You will see caves:
And also grasslands:
In the next tables each tank part and it's stats will be presented.
Hull number | Image | Health | Armor amount | Armor strength | Mass |
---|---|---|---|---|---|
1 | 100 | 1 | 20 | 0.8 | |
2 | 90 | 1.1 | 25 | 0.8 | |
3 | 150 | 1 | 20 | 1.3 | |
4 | 100 | 1.5 | 30 | 1.3 | |
5 | 90 | 0.9 | 18 | 0.7 | |
6 | 110 | 0.5 | 20 | 0.7 | |
7 | 100 | 0.6 | 22 | 0.75 | |
8 | 85 | 0.6 | 25 | 0.3 |
Turret number | Image | Angle speed | Mass | Bullet capacity |
---|---|---|---|---|
1 | 0.0006 | 0.25 | 3 | |
2 | 0.001 | 0.15 | 2 | |
3 | 0.0004 | 0.3 | 5 | |
4 | 0.0008 | 0.3 | 3 | |
5 | 0.0005 | 0.27 | 4 | |
6 | 0.0003 | 0.4 | 6 | |
7 | 0.00045 | 0.32 | 5 | |
8 | 0.0008 | 0.35 | 4 |
- Attacker
- Movement: WASD
- Turret rotate: "C" - Right, "V" - Left
- Shoot: "B"
- Defender
- Movement: Arrows
- Turret rotate: "," - Right, "." - Left
- Shoot: "/"
- Egor Pankratiev
- Stanislau Habrus
This game is released under the MIT License. For more information, check the LICENSE file.