使用JavaGUI 编写的贪吃蛇小游戏源码(运用了Swing、监听器、定时器等一些知识)

上传者: 35766009 | 上传时间: 2023-01-17 14:42:20 | 文件大小: 228KB | 文件类型: RAR
该文件为我利用业余时间编写的GUI小游戏 该游戏实现了贪吃蛇的基本玩法以及规则 通过上、下、左、右按键来控制小蛇的移动方向 食物会在容器里随机生成一个位置 当小蛇吞食掉地图上的食物时下一个食物才会在容器里生成 添加了积分玩法 如果有想法可以自行添加玩法以及功能,或者私信我提出建议 (彩蛋:游戏里按F1有惊喜)

文件下载

资源详情

[{"title":"( 31 个子文件 228KB ) 使用JavaGUI 编写的贪吃蛇小游戏源码(运用了Swing、监听器、定时器等一些知识)","children":[{"title":"Snake","children":[{"title":"Snake.iml <span style='color:#111;'> 433B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"statics","children":[{"title":"body.png <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"header.png <span style='color:#111;'> 70.23KB </span>","children":null,"spread":false},{"title":"right.png <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false},{"title":"up.png <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false},{"title":"down.png <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"food.png <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"left.png <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false}],"spread":true},{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 65B </span>","children":null,"spread":false}],"spread":true},{"title":"com","children":[{"title":"xiaoye","children":[{"title":"snake","children":[{"title":"GamePanel.java <span style='color:#111;'> 7.00KB </span>","children":null,"spread":false},{"title":"StartGame.java <span style='color:#111;'> 667B </span>","children":null,"spread":false},{"title":"Data.java <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"smartfox_info.xml <span style='color:#111;'> 193B </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 278B </span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'> 257B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 3.45KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 184B </span>","children":null,"spread":false},{"title":"artifacts","children":[{"title":"Snake_jar.xml <span style='color:#111;'> 281B </span>","children":null,"spread":false}],"spread":true},{"title":"inspectionProfiles","children":[{"title":"Project_Default.xml <span style='color:#111;'> 8.79KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"out","children":[{"title":"production","children":[{"title":"Snake","children":[{"title":"statics","children":[{"title":"body.png <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"header.png <span style='color:#111;'> 70.23KB </span>","children":null,"spread":false},{"title":"right.png <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false},{"title":"up.png <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false},{"title":"down.png <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"food.png <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"left.png <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false}],"spread":true},{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 65B </span>","children":null,"spread":false}],"spread":true},{"title":"com","children":[{"title":"xiaoye","children":[{"title":"snake","children":[{"title":"Data.class <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"StartGame.class <span style='color:#111;'> 855B </span>","children":null,"spread":false},{"title":"GamePanel.class <span style='color:#111;'> 4.53KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"artifacts","children":[{"title":"Snake_jar","children":[{"title":"Snake.jar <span style='color:#111;'> 54.59KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明