["{\"Destroyed\":false,\"MapPosition\":0,\"count\":1,\"dir\":96.0474630339223,\"height\":10,\"hp\":200,\"hp_recovery_per_sec\":0.1,\"hpmax\":200,\"moveSteps\":17,\"moving\":true,\"rect\":{\"x\":734,\"y\":44,\"width\":10,\"height\":10},\"speed\":200,\"team\":1,\"turretDir\":96.0474630339223,\"width\":10,\"x\":739,\"y\":49}","{\"Destroyed\":false,\"MapPosition\":0,\"count\":-1,\"damage\":20,\"dir\":104.71886425212547,\"height\":10,\"rect\":{\"x\":1886,\"y\":200,\"width\":10,\"height\":10},\"speed\":200,\"tank\":{\"Destroyed\":false,\"MapPosition\":0,\"count\":2,\"dir\":230.58762076311007,\"height\":10,\"hp\":200,\"hp_recovery_per_sec\":0.1,\"hpmax\":200,\"moveSteps\":17,\"moving\":true,\"rect\":{\"x\":-4,\"y\":-3,\"width\":10,\"height\":10},\"speed\":200,\"team\":1,\"turretDir\":230.58762076311007,\"width\":10,\"x\":1,\"y\":2},\"width\":10,\"x\":1891,\"y\":205}","{\"Destroyed\":false,\"MapPosition\":0,\"count\":-1,\"damage\":20,\"dir\":133.09661115007572,\"height\":10,\"rect\":{\"x\":1657,\"y\":1449,\"width\":10,\"height\":10},\"speed\":200,\"tank\":{\"Destroyed\":true,\"MapPosition\":0,\"count\":4,\"dir\":309.3375977981636,\"height\":10,\"hp\":-0.10000000000511164,\"hp_recovery_per_sec\":0.1,\"hpmax\":200,\"moveSteps\":28,\"moving\":true,\"rect\":{\"x\":96,\"y\":235,\"width\":10,\"height\":10},\"speed\":200,\"team\":1,\"turretDir\":121.80938928779315,\"width\":10,\"x\":101,\"y\":240},\"width\":10,\"x\":1662,\"y\":1454}","{\"Destroyed\":false,\"MapPosition\":0,\"count\":-1,\"damage\":20,\"dir\":148.3280915539084,\"height\":10,\"rect\":{\"x\":1120,\"y\":1507,\"width\":10,\"height\":10},\"speed\":200,\"tank\":{\"Destroyed\":false,\"MapPosition\":0,\"count\":3,\"dir\":19.735145295603658,\"height\":10,\"hp\":114.39999999999691,\"hp_recovery_per_sec\":0.1,\"hpmax\":200,\"moveSteps\":33,\"moving\":true,\"rect\":{\"x\":386,\"y\":-2,\"width\":10,\"height\":10},\"speed\":200,\"team\":1,\"turretDir\":148.3280915539084,\"width\":10,\"x\":391,\"y\":3},\"width\":10,\"x\":1125,\"y\":1512}","{\"Destroyed\":false,\"MapPosition\":0,\"count\":-1,\"damage\":20,\"dir\":119.29541908378022,\"height\":10,\"rect\":{\"x\":1236,\"y\":779,\"width\":10,\"height\":10},\"speed\":200,\"tank\":{\"Destroyed\":false,\"MapPosition\":0,\"count\":2,\"dir\":230.58762076311007,\"height\":10,\"hp\":200,\"hp_recovery_per_sec\":0.1,\"hpmax\":200,\"moveSteps\":17,\"moving\":true,\"rect\":{\"x\":-4,\"y\":-3,\"width\":10,\"height\":10},\"speed\":200,\"team\":1,\"turretDir\":230.58762076311007,\"width\":10,\"x\":1,\"y\":2},\"width\":10,\"x\":1241,\"y\":784}","{\"Destroyed\":false,\"MapPosition\":0,\"count\":3,\"dir\":191.43306018344006,\"height\":10,\"hp\":184.29999999999293,\"hp_recovery_per_sec\":0.1,\"hpmax\":200,\"moveSteps\":17,\"moving\":true,\"rect\":{\"x\":280,\"y\":146,\"width\":10,\"height\":10},\"speed\":200,\"team\":1,\"turretDir\":191.43306018344006,\"width\":10,\"x\":285,\"y\":151}","{\"Destroyed\":false,\"MapPosition\":0,\"count\":-1,\"damage\":20,\"dir\":130.7321066997092,\"height\":10,\"rect\":{\"x\":1822,\"y\":1568,\"width\":10,\"height\":10},\"speed\":200,\"tank\":{\"Destroyed\":false,\"MapPosition\":0,\"count\":1,\"dir\":201.25887167626365,\"height\":10,\"hp\":134.3999999999969,\"hp_recovery_per_sec\":0.1,\"hpmax\":200,\"moveSteps\":34,\"moving\":true,\"rect\":{\"x\":195,\"y\":61,\"width\":10,\"height\":10},\"speed\":200,\"team\":1,\"turretDir\":130.7321066997092,\"width\":10,\"x\":200,\"y\":66},\"width\":10,\"x\":1827,\"y\":1573}","{\"Destroyed\":false,\"MapPosition\":0,\"count\":-1,\"damage\":20,\"dir\":146.27664033394765,\"height\":10,\"rect\":{\"x\":886,\"y\":1258,\"width\":10,\"height\":10},\"speed\":200,\"tank\":{\"Destroyed\":true,\"MapPosition\":0,\"count\":4,\"dir\":309.3375977981636,\"height\":10,\"hp\":-0.10000000000511164,\"hp_recovery_per_sec\":0.1,\"hpmax\":200,\"moveSteps\":28,\"moving\":true,\"rect\":{\"x\":96,\"y\":235,\"width\":10,\"height\":10},\"speed\":200,\"team\":1,\"turretDir\":121.80938928779315,\"width\":10,\"x\":101,\"y\":240},\"width\":10,\"x\":891,\"y\":1263}","{\"Destroyed\":false,\"MapPosition\":0,\"count\":2,\"dir\":230.58762076311007,\"height\":10,\"hp\":200,\"hp_recovery_per_sec\":0.1,\"hpmax\":200,\"moveSteps\":17,\"moving\":true,\"rect\":{\"x\":-4,\"y\":-3,\"width\":10,\"height\":10},\"speed\":200,\"team\":1,\"turretDir\":230.58762076311007,\"width\":10,\"x\":1,\"y\":2}","{\"Destroyed\":false,\"MapPosition\":0,\"count\":-1,\"damage\":20,\"dir\":159.60903524863636,\"height\":10,\"rect\":{\"x\":963,\"y\":1293,\"width\":10,\"height\":10},\"speed\":200,\"tank\":{\"Destroyed\":false,\"MapPosition\":0,\"count\":3,\"dir\":191.43306018344006,\"height\":10,\"hp\":184.29999999999293,\"hp_recovery_per_sec\":0.1,\"hpmax\":200,\"moveSteps\":17,\"moving\":true,\"rect\":{\"x\":280,\"y\":146,\"width\":10,\"height\":10},\"speed\":200,\"team\":1,\"turretDir\":191.43306018344006,\"width\":10,\"x\":285,\"y\":151},\"width\":10,\"x\":968,\"y\":1298}","{\"Destroyed\":false,\"MapPosition\":0,\"count\":-1,\"damage\":20,\"dir\":152.3909499455507,\"height\":10,\"rect\":{\"x\":1018,\"y\":1414,\"width\":10,\"height\":10},\"speed\":200,\"tank\":{\"Destroyed\":false,\"MapPosition\":0,\"count\":3,\"dir\":191.43306018344006,\"height\":10,\"hp\":184.29999999999293,\"hp_recovery_per_sec\":0.1,\"hpmax\":200,\"moveSteps\":17,\"moving\":true,\"rect\":{\"x\":280,\"y\":146,\"width\":10,\"height\":10},\"speed\":200,\"team\":1,\"turretDir\":191.43306018344006,\"width\":10,\"x\":285,\"y\":151},\"width\":10,\"x\":1023,\"y\":1419}","{\"Destroyed\":false,\"MapPosition\":0,\"count\":-1,\"damage\":20,\"dir\":155.48383885640683,\"height\":10,\"rect\":{\"x\":929,\"y\":1310,\"width\":10,\"height\":10},\"speed\":200,\"tank\":{\"Destroyed\":false,\"MapPosition\":0,\"count\":1,\"dir\":96.0474630339223,\"height\":10,\"hp\":200,\"hp_recovery_per_sec\":0.1,\"hpmax\":200,\"moveSteps\":18,\"moving\":true,\"rect\":{\"x\":737,\"y\":44,\"width\":10,\"height\":10},\"speed\":200,\"team\":1,\"turretDir\":96.0474630339223,\"width\":10,\"x\":742,\"y\":49},\"width\":10,\"x\":934,\"y\":1315}","{\"Destroyed\":false,\"MapPosition\":0,\"count\":-1,\"damage\":20,\"dir\":151.20689924035946,\"height\":10,\"rect\":{\"x\":627,\"y\":1117,\"width\":10,\"height\":10},\"speed\":200,\"tank\":{\"Destroyed\":false,\"MapPosition\":0,\"count\":2,\"dir\":230.58762076311007,\"height\":10,\"hp\":200,\"hp_recovery_per_sec\":0.1,\"hpmax\":200,\"moveSteps\":17,\"moving\":true,\"rect\":{\"x\":-4,\"y\":-3,\"width\":10,\"height\":10},\"speed\":200,\"team\":1,\"turretDir\":230.58762076311007,\"width\":10,\"x\":1,\"y\":2},\"width\":10,\"x\":632,\"y\":1122}","{\"Destroyed\":false,\"MapPosition\":0,\"count\":-1,\"damage\":20,\"dir\":171.2977762100532,\"height\":10,\"rect\":{\"x\":298,\"y\":1627,\"width\":10,\"height\":10},\"speed\":300,\"tank\":{\"Destroyed\":false,\"MapPosition\":0,\"count\":0,\"dir\":-37.67359333983043,\"height\":10,\"hp\":200,\"hp_recovery_per_sec\":0.5,\"hpmax\":200,\"moveSteps\":1243,\"moving\":true,\"rect\":{\"x\":196,\"y\":169,\"width\":10,\"height\":10},\"speed\":200,\"team\":0,\"turretDir\":-37.67359333983043,\"width\":10,\"x\":201,\"y\":174},\"width\":10,\"x\":303,\"y\":1632}","{\"Destroyed\":false,\"MapPosition\":0,\"count\":-1,\"damage\":20,\"dir\":153.92464441605125,\"height\":10,\"rect\":{\"x\":273,\"y\":418,\"width\":10,\"height\":10},\"speed\":200,\"tank\":{\"Destroyed\":false,\"MapPosition\":0,\"count\":3,\"dir\":191.43306018344006,\"height\":10,\"hp\":184.29999999999293,\"hp_recovery_per_sec\":0.1,\"hpmax\":200,\"moveSteps\":17,\"moving\":true,\"rect\":{\"x\":280,\"y\":146,\"width\":10,\"height\":10},\"speed\":200,\"team\":1,\"turretDir\":191.43306018344006,\"width\":10,\"x\":285,\"y\":151},\"width\":10,\"x\":278,\"y\":423}","{\"Destroyed\":false,\"MapPosition\":0,\"count\":-1,\"damage\":20,\"dir\":180,\"height\":10,\"rect\":{\"x\":297,\"y\":1615,\"width\":10,\"height\":10},\"speed\":300,\"tank\":{\"Destroyed\":false,\"MapPosition\":0,\"count\":0,\"dir\":-37.67359333983043,\"height\":10,\"hp\":200,\"hp_r
没有合适的资源?快使用搜索试试~ 我知道了~
单机版坦克大战代码(计算机体系结构课内实验)
共154个文件
class:52个
txt:32个
png:24个
需积分: 0 1 下载量 57 浏览量
2024-07-18
22:32:27
上传
评论
收藏 1005KB ZIP 举报
温馨提示
java语言编写 基于案例代码设计自己的坦克大战游戏(单机版),并为以后扩展为网络对战版预留接口。 1. 基于MVC或者分成架构设计,设计每个层各负责什么职责,提供什么功能; 2. 使用依赖倒置原则、以及回调函数技术,改写案例代码,将图形绘制功能移植到View层,并阐述这样做的好处,比如如何更换显示图片以及是否支持3D显示等; 3. 修改控制层,修改为:我方坦克跟随鼠标位置作为方向,使用鼠标右键开炮;键盘的空格支持我方坦克开炮;界面上我方坦克最多可以同时(1个屏幕)发射3发炮弹;地方坦克随机出生,且地方坦克同时不多于5辆; 4. 新增一些组件完成如下要求: (1)控制游戏开始、结束、存档功能,并统计游戏时长和击毁敌方坦克数; (2)支持地图功能,新增草丛、河流,坦克在草丛中时不显示(练习碰撞检测)、坦克不能跨过河流;
资源推荐
资源详情
资源评论
收起资源包目录
单机版坦克大战代码(计算机体系结构课内实验) (154个子文件)
ReadView.class 7KB
GameView.class 5KB
GamePanel.class 5KB
WarControl.class 5KB
LoadView.class 5KB
GameView$5.class 4KB
WarData.class 3KB
EnemyTank.class 3KB
WarControl$2.class 2KB
Utils.class 2KB
GameView$6.class 2KB
FirstView.class 2KB
Tank.class 2KB
WarControl$1.class 2KB
Element.class 2KB
GameView$7.class 2KB
LoadView$2.class 2KB
LoadView$5.class 2KB
LoadView$3.class 2KB
LoadView$4.class 2KB
GameView$4.class 2KB
ImageCache.class 2KB
GameView$3.class 2KB
LastView.class 2KB
Directions.class 2KB
Shot.class 1KB
ReadView$5.class 1KB
ReadView$4.class 1KB
ReadView$3.class 1KB
ReadView$2.class 1KB
UpdatePositions.class 1KB
CollisionDetection.class 1KB
UpdateView.class 1KB
GameView$2.class 1KB
LastView$1.class 1KB
TankTeam.class 1KB
LastView$2.class 798B
LoadView$1.class 785B
FirstView$1.class 784B
ReadView$1.class 782B
GameView$5$3.class 762B
GameView$5$1.class 762B
GameView$5$2.class 762B
GameView$1.class 744B
ReadView$7.class 739B
ReadView$6.class 739B
Main.class 682B
MenuPanel.class 647B
WarDataSingleton.class 592B
Tank$DrawInterface.class 293B
Shot$DrawInterface.class 293B
IElement.class 203B
.gitignore 344B
.gitignore 176B
.gitignore 50B
TankWar-master.iml 698B
TankWar.iml 500B
TankWar2.0_jar.jar 494KB
fastjson-1.2.7.jar 407KB
GameView.java 10KB
LoadView.java 9KB
ReadView.java 8KB
WarControl.java 8KB
WarData.java 8KB
GamePanel.java 5KB
EnemyTank.java 3KB
Tank.java 3KB
Utils.java 3KB
Element.java 3KB
LastView.java 2KB
ImageCache.java 2KB
FirstView.java 2KB
Shot.java 2KB
CollisionDetection.java 1KB
UpdatePositions.java 979B
UpdateView.java 976B
WarDataSingleton.java 593B
Directions.java 576B
MenuPanel.java 377B
Main.java 349B
IElement.java 283B
TankTeam.java 108B
bush2.jpg 1KB
bush2.jpg 1KB
river2.jpg 734B
river2.jpg 734B
MANIFEST.MF 67B
MANIFEST.MF 67B
turret1_1.png 4KB
turret1_1.png 4KB
turret1_1.png 4KB
turret2_1.png 4KB
turret2_1.png 4KB
turret2_1.png 4KB
bodyu2.png 2KB
bodyu2.png 2KB
bodyu2.png 2KB
bodyu1.png 1KB
bodyu1.png 1KB
bodyu1.png 1KB
共 154 条
- 1
- 2
资源评论
aabc20
- 粉丝: 119
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 0-1背包限界剪枝.cpp
- 基于MATLAB图像腐蚀膨胀代码面板GUI(1).zip
- 随堂练习编程题的参考代码c4.c
- 自制功能强大的自动点击工具
- 【Unity代理导航插件】Agents Navigation与现有的 Unity 技术和框架完美融合
- Helsinki-NLP 中英文翻译模型opus-mt-en-zh/opus-mt-zh-en
- myapp__armeabi-v7a-0.1-armeabi-v7a-debug.apk.1
- C++ 中对强类型(strong type)进行实验
- Java中数组反转与多线程应用深度解析
- 【Unity高级天气系统插件】Altos - Volumetric Clouds, Skybox, and Weather
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功