Every object has id
field and x, y
coordination.
Solid objects have only type (tinywall/water/metal
) and coordinations
- type:
tinywall
- size:
8x8
can be destroyed with bullets.
- type:
water
- size:
32x32
This tile is invisible for bullets but tanks cannot cross this tile
- type:
metal
- size:
32x32
Unbreakable wall.
- type:
player
- size:
32x32
To identify your tank you need id
field from greetings
response.
This object sends (described here)
information about speed/coordinations/direction and shots.
- type:
npc
- size:
32x32
Enemy tank - like player, sends information and shots.
- type:
bullet
- size:
4x4
Crash walls, destroy tanks etc. - similar to tanks, bullet sends informations about himself.
When bullet is from player and hit another player, 'touched' player will be freezed.