FlappyBird-master.zip
大小:552.76KB
价格:39积分
下载量:0
评分:
5.0
上传者:Zyr556677
更新日期:2025-09-22

Python小游戏:FlappyBird

资源文件列表(大概)

文件名
大小
FlappyBird-master/
-
FlappyBird-master/Flappy Bird v1.0.2.py
7.74KB
FlappyBird-master/README.md
1.32KB
FlappyBird-master/assets/
-
FlappyBird-master/assets/audio/
-
FlappyBird-master/assets/audio/die.wav
190.33KB
FlappyBird-master/assets/audio/flap.wav
29.2KB
FlappyBird-master/assets/audio/hit.wav
94.33KB
FlappyBird-master/assets/audio/score.wav
173.33KB
FlappyBird-master/assets/audio/start.wav
346.33KB
FlappyBird-master/assets/sprites/
-
FlappyBird-master/assets/sprites/0.png
339B
FlappyBird-master/assets/sprites/1.png
336B
FlappyBird-master/assets/sprites/2.png
345B
FlappyBird-master/assets/sprites/3.png
339B
FlappyBird-master/assets/sprites/4.png
346B
FlappyBird-master/assets/sprites/5.png
345B
FlappyBird-master/assets/sprites/6.png
344B
FlappyBird-master/assets/sprites/7.png
345B
FlappyBird-master/assets/sprites/8.png
338B
FlappyBird-master/assets/sprites/9.png
343B
FlappyBird-master/assets/sprites/blue-down.png
431B
FlappyBird-master/assets/sprites/blue-mid.png
430B
FlappyBird-master/assets/sprites/blue-up.png
431B
FlappyBird-master/assets/sprites/day.png
6.86KB
FlappyBird-master/assets/sprites/floor.png
470B
FlappyBird-master/assets/sprites/gameover.png
758B
FlappyBird-master/assets/sprites/green-pipe.png
2.47KB
FlappyBird-master/assets/sprites/guide.png
1.45KB
FlappyBird-master/assets/sprites/night.png
1.08KB
FlappyBird-master/assets/sprites/red-down.png
425B
FlappyBird-master/assets/sprites/red-mid.png
426B
FlappyBird-master/assets/sprites/red-pipe.png
2.38KB
FlappyBird-master/assets/sprites/red-up.png
425B
FlappyBird-master/assets/sprites/setting.png
60.35KB
FlappyBird-master/assets/sprites/start.png
32.36KB
FlappyBird-master/assets/sprites/yellow-down.png
426B
FlappyBird-master/assets/sprites/yellow-mid.png
425B
FlappyBird-master/assets/sprites/yellow-up.png
427B

资源内容介绍

使用前先下载pygame,完整使用方式见 github:https://github.com/zhuangjihong/FlappyBird,[doge]。下载完pygame,运行py文件就可以了。很简单的一个小游戏,有 3 种皮肤,多种音效,两个时间(指白天和晚上)。
# FlappyBird## DownloadClick on "code", click on "Download ZIP", download the compressed package, unzip it to any location, open "Flappy Bird. py" inside, and you can run the program. Since this is done by Pygame, you need to download Pygame first.If you have Python installed on your computer, simply run '**pip install pygame**' on cmd, and then use the following command to check the Pygame version.```python -m pygame --version```## How to play- Space jumping.- R Return to the main interface.## Custom skin### backgroundThe default skin for the game background is random. To customize it, change the code on line 31 of "Flappy Bird. py" to the following one, with 'xxx' being 'day' or 'night'.```IMAGES['bgpic']=IMAGES['xxx']```### BirdThe default skin of the game is random for the bird. To customize it, change the code on line 32 of "Flappy Bird. py" to the following code, with 'xxx' being any of "red", "blue", or "yellow".```color='xxx'```### ColumnThe default skin of the game's pillars is random. To customize it, change the code on line 32 of "Flappy Bird. py" to the following code, with 'xxx' being either "green-pipe" or "red-pipe".```pipe = IMAGES['xxx']```## Version### v1.0.2Added start button.### v1.0.1Added the function of returning to the main interface.### v1.0.0Ordinary gaming features.

用户评论 (0)

发表评论

captcha

相关资源

javaaaaaaaaaaa

javaaaaaaaaaaa

64.63MB40积分

基于MATLAB的图像平滑处理(完美运行)

图像平滑处理是一种常用的图像处理方法,用于去除图像中的噪声,使得图像变得更加平滑和清晰。图像平滑处理的目标是在尽量保留图像的细节的同时,去除图像中的噪声。图像平滑处理通常基于图像的局部特征,通过对图像中的像素进行加权平均来实现。常用的图像平滑处理方法有以下几种:1. 均值滤波:将图像中的每个像素替换为其周围像素的平均值。均值滤波可以有效去除图像中的高频噪声,但会导致图像的细节模糊。2. 中值滤波:将图像中的每个像素替换为其周围像素的中值。中值滤波适用于去除图像中的椒盐噪声等脉冲噪声,能够保持图像的边缘和细节。3. 高斯滤波:通过对图像中的像素进行加权平均来平滑图像。高斯滤波可以有效去除图像中的高频噪声,同时保持图像的细节和边缘特征。4. 双边滤波:在进行像素平均时,考虑到图像的空间距离和像素之间的灰度差异。双边滤波可以有效平滑图像,同时保持图像的边缘和纹理细节。图像平滑处理在很多图像处理应用中都有广泛的应用,如图像降噪、图像增强、图像压缩等。通过选择合适的平滑处理方法,可以使得图像在去噪的同时保持更好的视觉效果。

82.63KB37积分

基于MATLAB的图像去雾源码(完美运行)

图像去雾是一种图像处理技术,用于去除由雾、烟雾或其他大气颗粒引起的图像模糊和降低对比度的效果。这种技术可以通过对图像进行复原和增强来恢复图像的细节和清晰度。图像去雾的方法可以分为基于物理模型和基于数据驱动的方法。基于物理模型的图像去雾方法使用了大气散射模型,该模型描述了雾和烟雾对光的散射和吸收。根据这个模型,可以通过分析图像中的像素值和颜色来推断图像中的雾的浓度和吸收程度,然后使用这些信息来去除图像中的雾。基于数据驱动的图像去雾方法则利用了大量的雾和非雾图像的训练数据,通过学习这些数据的特征和模式来去除图像中的雾。这些方法通常使用机器学习技术,如神经网络或支持向量机,来对图像进行分类和恢复。图像去雾的应用广泛,包括航空、卫星图像处理、视频监控、无人驾驶等领域。通过去除图像中的雾,可以提高图像的清晰度和对比度,从而更好地进行图像分析和识别。

683.42KB45积分

Android Systrace 博客资源

Android Systrace 博客资源

43.79MB19积分