登录
首页 » Python » Python飞机大战主模块程序

Python飞机大战主模块程序

于 2022-03-16 发布 文件大小:1.51 MB
0 128
下载积分: 2 下载次数: 1

代码说明:

用python和pygame模块编写的飞机大战的游戏,里面有很多编写的小技巧,有检测碰撞,播放音乐,敌机又分为大中小三种战机。编写代码的思路(从简单开始写起)1 背景和游戏音效                        (完成后能出现游戏界面)2 我方飞机,并使其能上下左右移动(完成后能出现一辆我方飞机)在myplane函数里飞机上下左右移动需要写4个方法在main函数里实例化出我方飞机并绘制出来且有突突突的飞行效果,并通过键盘响应调用不同方法难点一:如何使飞机有突突突的视觉感受思路: 加载两张飞机图片,然后不断切换,并延迟图片切换(5帧切换一次)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Python string
    说明:  对python中数据类型字符串进行详细介绍,以及对正则表达式的申明(data type alphabetic string be in progress detailed introduce declare)
    2019-05-30 10:35:37下载
    积分:1
  • 机器学习-岭回归实现
    通过岭回归实现 数据标签的预测
    2020-12-05下载
    积分:1
  • naive_bayes(简单贝叶斯)
    简单贝叶斯的介绍和讲解,深刻理解简单的贝叶斯(Simple introduction and explanation of Bias, a deep understanding of simple Bias.)
    2018-06-05 15:21:50下载
    积分:1
  • MaCA-master
    说明:  中国电子科技集团公司认知与智能技术重点实验室发布的MaCA(Multi-agent Combat Arena)环境,是国内首个可模拟军事作战的轻量级多智能体对抗与训练平台,是多智能体对抗算法研究、训练、测试和评估的绝佳环境,可支持作战场景和规模自定义,智能体数量和种类自定义,智能体特征和属性自定义,支持智能体行为回报规则和回报值自定义等。(MaCA (multi agent combat) issued by the Key Laboratory of cognitive and intelligent technology of China Electronic Technology Corporation Arena) environment is the first lightweight multi-agent confrontation and training platform that can simulate military operations in China. It is an excellent environment for the research, training, testing and evaluation of multi-agent confrontation algorithms. It can support the customization of battle scenarios and scales, the number and types of agents, the characteristics and attributes of agents, and the behavior return rules and values of agents And so on.)
    2021-04-28 23:08:43下载
    积分:1
  • demo_gesture_dot
    说明:  用python实现3D空间散点的连线绘图(Realization of 3D Spatial Spot Connection Drawing with Python)
    2020-06-19 21:20:02下载
    积分:1
  • untitled0
    关联规则挖掘算法 Python实现Apriori算法(Association rule mining algorithm Python implementation Apriori algorithm)
    2018-05-02 21:31:29下载
    积分:1
  • NN_compression-master
    说明:  图像压缩,人工智能算法,神经网络。python 代码。可以直接使用。(Image compression, artificial intelligence algorithm, neural network. Python code. It can be used directly.)
    2020-12-09 16:29:18下载
    积分:1
  • Python 的例子
    BOARD_SIZE = 8 def under_attack (col,女王/王后) ︰ 左 = 右 =,c 在 reversed(queens) col ︰ 左、 右左-= 1,右 + 1 如果 c 中 (左,col,右): 返回 True 返回 False def solve(n) ︰ 如果 n = = 0 ︰ 返回 [[]] smaller_solutions = 解决 (n-1) 返回 [solution+[(n,i+1)] 为我解决的 smaller_solutions,如果不是 under_attack xrange(BOARD_SIZE) (i + 1, solution)] 在 solve(BOARD_SIZE) 的回复 ︰ 打印答案
    2023-05-27 16:10:03下载
    积分:1
  • USB-HID-TEST
    USB HID通信程序,采用Python编写。(python code for USB HID.)
    2021-03-18 13:29:19下载
    积分:1
  • python从入门到实践及书本源代码
    python编程:从入门到实践,高清pdf书本,以及原书代码,有需要的可以下载学习
    2022-07-15 13:58:46下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载