【python】飞机大战小游戏代码

上传者: 51447215 | 上传时间: 2022-07-26 09:07:06 | 文件大小: 18.24MB | 文件类型: ZIP
代码运行环境为pycharm,使用的类库是pygame, 代码是博主学习python语言之后的练习,CSDN上关于飞机大战游戏的代码很多,本篇的代码也只是其中一种思路,代码内大量用到了类的创建与使用,希望对大家的学习有所帮助

文件下载

资源详情

[{"title":"( 71 个子文件 18.24MB ) 【python】飞机大战小游戏代码","children":[{"title":"飞机大战小游戏","children":[{"title":"res","children":[{"title":"bullet_12.png <span style='color:#111;'> 3.93KB </span>","children":null,"spread":false},{"title":"img-plane_6.png <span style='color:#111;'> 5.95KB </span>","children":null,"spread":false},{"title":"app.ico <span style='color:#111;'> 133.40KB </span>","children":null,"spread":false},{"title":"bullet_3.png <span style='color:#111;'> 4.51KB </span>","children":null,"spread":false},{"title":"eff1.png <span style='color:#111;'> 22.79KB </span>","children":null,"spread":false},{"title":"bomb-1.png <span style='color:#111;'> 8.16KB </span>","children":null,"spread":false},{"title":"img-plane_1.png <span style='color:#111;'> 5.67KB </span>","children":null,"spread":false},{"title":"img-plane_3.png <span style='color:#111;'> 5.67KB </span>","children":null,"spread":false},{"title":"bullet_11.png <span style='color:#111;'> 4.51KB </span>","children":null,"spread":false},{"title":"hero.png <span style='color:#111;'> 5.64KB </span>","children":null,"spread":false},{"title":"hero2.png <span style='color:#111;'> 18.64KB </span>","children":null,"spread":false},{"title":"img-plane_4.png <span style='color:#111;'> 5.95KB </span>","children":null,"spread":false},{"title":"bullet_9.png <span style='color:#111;'> 3.55KB </span>","children":null,"spread":false},{"title":"img_bg_level_3.jpg <span style='color:#111;'> 357.93KB </span>","children":null,"spread":false},{"title":"eff2.png <span style='color:#111;'> 71.44KB </span>","children":null,"spread":false},{"title":"img_bg_level_1.jpg <span style='color:#111;'> 387.79KB </span>","children":null,"spread":false},{"title":"background.png <span style='color:#111;'> 6.47KB </span>","children":null,"spread":false},{"title":"bomb-6.png <span style='color:#111;'> 5.79KB </span>","children":null,"spread":false},{"title":"img_bg_level_5.jpg <span style='color:#111;'> 74.10KB </span>","children":null,"spread":false},{"title":"image 14.png <span style='color:#111;'> 15.84KB </span>","children":null,"spread":false},{"title":"bomb-5.png <span style='color:#111;'> 8.92KB </span>","children":null,"spread":false},{"title":"image 6.png <span style='color:#111;'> 24.61KB </span>","children":null,"spread":false},{"title":"bullet_7.png <span style='color:#111;'> 4.39KB </span>","children":null,"spread":false},{"title":"image 11.png <span style='color:#111;'> 23.31KB </span>","children":null,"spread":false},{"title":"bg.wav <span style='color:#111;'> 15.38MB </span>","children":null,"spread":false},{"title":"image 9.png <span style='color:#111;'> 22.69KB </span>","children":null,"spread":false},{"title":"img-plane_7.png <span style='color:#111;'> 5.58KB </span>","children":null,"spread":false},{"title":"baozha.ogg <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false},{"title":"bullet_14.png <span style='color:#111;'> 5.02KB </span>","children":null,"spread":false},{"title":"bullet_2.png <span style='color:#111;'> 4.66KB </span>","children":null,"spread":false},{"title":"image 2.png <span style='color:#111;'> 20.77KB </span>","children":null,"spread":false},{"title":"bomb-7.png <span style='color:#111;'> 3.59KB </span>","children":null,"spread":false},{"title":"eff3.png <span style='color:#111;'> 89.03KB </span>","children":null,"spread":false},{"title":"bomb-2.png <span style='color:#111;'> 13.03KB </span>","children":null,"spread":false},{"title":"img_bg_level_4.jpg <span style='color:#111;'> 55.08KB </span>","children":null,"spread":false},{"title":"bullet_4.png <span style='color:#111;'> 3.89KB </span>","children":null,"spread":false},{"title":"bomb-3.png <span style='color:#111;'> 11.37KB </span>","children":null,"spread":false},{"title":"bg2.ogg <span style='color:#111;'> 823.75KB </span>","children":null,"spread":false},{"title":"bullet_5.png <span style='color:#111;'> 3.83KB </span>","children":null,"spread":false},{"title":"image 8.png <span style='color:#111;'> 22.87KB </span>","children":null,"spread":false},{"title":"gameover.wav <span style='color:#111;'> 252.81KB </span>","children":null,"spread":false},{"title":"bomb-4.png <span style='color:#111;'> 10.23KB </span>","children":null,"spread":false},{"title":"image 10.png <span style='color:#111;'> 23.23KB </span>","children":null,"spread":false},{"title":"hero_bullet_7.png <span style='color:#111;'> 4.42KB </span>","children":null,"spread":false},{"title":"image 7.png <span style='color:#111;'> 22.02KB </span>","children":null,"spread":false},{"title":"buttonPost.png <span style='color:#111;'> 3.30KB </span>","children":null,"spread":false},{"title":"bullet_13.png <span style='color:#111;'> 3.86KB </span>","children":null,"spread":false},{"title":"start.png <span style='color:#111;'> 7.85KB </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 36.00KB </span>","children":null,"spread":false},{"title":"bullet_1.png <span style='color:#111;'> 3.52KB </span>","children":null,"spread":false},{"title":"eff4.png <span style='color:#111;'> 71.96KB </span>","children":null,"spread":false},{"title":"bomb.wav <span style='color:#111;'> 144.58KB </span>","children":null,"spread":false},{"title":"img-plane_2.png <span style='color:#111;'> 5.93KB </span>","children":null,"spread":false},{"title":"image 4.png <span style='color:#111;'> 20.74KB </span>","children":null,"spread":false},{"title":"image 13.png <span style='color:#111;'> 15.84KB </span>","children":null,"spread":false},{"title":"bullet_10.png <span style='color:#111;'> 4.66KB </span>","children":null,"spread":false},{"title":"game.ico <span style='color:#111;'> 133.40KB </span>","children":null,"spread":false},{"title":"bullet_8.png <span style='color:#111;'> 5.02KB </span>","children":null,"spread":false},{"title":"image 12.png <span style='color:#111;'> 23.44KB </span>","children":null,"spread":false},{"title":"img_bg_level_2.jpg <span style='color:#111;'> 189.80KB </span>","children":null,"spread":false},{"title":"image 3.png <span style='color:#111;'> 21.36KB </span>","children":null,"spread":false},{"title":"image 1.png <span style='color:#111;'> 13.89KB </span>","children":null,"spread":false},{"title":"bullet_6.png <span style='color:#111;'> 5.03KB </span>","children":null,"spread":false},{"title":"img-plane_5.png <span style='color:#111;'> 5.67KB </span>","children":null,"spread":false},{"title":"image 5.png <span style='color:#111;'> 27.75KB </span>","children":null,"spread":false}],"spread":false},{"title":"hero_plane.py <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":"game_main.py <span style='color:#111;'> 4.84KB </span>","children":null,"spread":false},{"title":"game_map.py <span style='color:#111;'> 839B </span>","children":null,"spread":false},{"title":"game_score.py <span style='color:#111;'> 754B </span>","children":null,"spread":false},{"title":"plane_bullet.py <span style='color:#111;'> 682B </span>","children":null,"spread":false},{"title":"enemy_plane.py <span style='color:#111;'> 950B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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