- A tank game which can be played with friends online.
- An introduce blog-Click to jump to the blog.
- Please run the
TankServer
first, you may need to close the firewall before playing with friends on different computers, otherwise they can not connect to yourTankServer
(You needn't to do this if you just want to Test on the local machince). - Then run the
TankClient
, you need to fill theserver IP
to connect to the machine which running theTankServer
. the default value127.0.0.1
can be used if you just test the game on your own PC.
- You control it with
W
(up),S
(down),A
(left),D
(right) andJ
(fire). - you can restart the
TankClient
to return to the game if your tank was defeated.
- This game base on object-orient idea, it makes me feel the benefits of inheritance, encapsulation and polymorphism. And it also show how to wirte a simple C/S application.