• 大小: 0.40M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 标签: 坦克大战  坦克  

资源简介

## How to start
- 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 your `TankServer` (You needn't to do this if you just want to Test on the local machince).
- Then run the `TankClient`, you need to fill the `server IP` to connect to the machine which running the `TankServer`. the default value `127.0.0.1` can be used if you just test the game on your own PC.

## Game Operation
- You control it with `W`(up), `S`(down), `A`(left), `D`(right) and `J`(fire). 
- you can restart the `TankClient` to return to the game if your tank was defeated.

资源截图

代码片段和文件信息

package client.bean;

/**
 * 八个方向
 */
public enum Dir {
    L LU U RU R RD D LD STOP
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-12-23 11:23  TankOnline-master\
     目录           0  2019-04-22 21:03  TankOnline-master\TankOnline-master\
     文件        1129  2019-04-22 21:03  TankOnline-master\TankOnline-master\README.md
     目录           0  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\
     目录           0  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\
     目录           0  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\bean\
     文件         103  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\bean\Dir.java
     文件        1995  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\bean\Explode.java
     文件        4016  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\bean\Missile.java
     文件       10958  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\bean\Tank.java
     目录           0  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\client\
     文件        6085  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\client\NetClient.java
     文件        9179  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\client\TankClient.java
     目录           0  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\event\
     文件         332  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\event\TankHitEvent.java
     文件         184  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\event\TankHitListener.java
     目录           0  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\images\
     目录           0  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\images\explode\
     文件       19330  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\images\explode\explode1.png
     文件       18796  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\images\explode\explode2.png
     文件       19627  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\images\explode\explode3.png
     文件       19821  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\images\explode\explode4.png
     文件       19816  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\images\explode\explode5.png
     文件       19631  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\images\explode\explode6.png
     文件       19351  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\images\explode\explode7.png
     目录           0  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\images\missile\
     文件       18211  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\images\missile\m.png
     文件       20021  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\images\missile\n.png
     目录           0  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\images\tank\
     文件       17369  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\images\tank\eD.png
     文件       17371  2019-04-22 21:03  TankOnline-master\TankOnline-master\src\client\images\tank\eL.png
............此处省略31个文件信息

评论

共有 条评论