• 大小: 0.67M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-03-28
  • 语言: 其他
  • 标签: 其他  

资源简介


这应该是第一个用python语言写的flappy bird 吧 。。。。。需要安装依赖包pygame

资源截图

代码片段和文件信息

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
“““
Created on  Dec 25 2016
@author: LINJUNJI  
@mail: ljj6@mail2.sysu.edu.cn 
“““
import pygame
from sys import exit
import random
from pygame.locals import *
from pygame.font import *  
from gamerole import *
import os
import datetime
import numpy as np
import operator

#图片路径信息
BackGround_image_path1=‘./sources/background/day.png‘          #背景图片
BackGround_image_path2=‘./sources/background/night.png‘

GetStart_image_path=‘./sources/guide/day/down.png‘           #开始界面
GameOver_image_path=‘./sources/other/gameover.png‘
Restart_image_path=‘./sources/other/restart.png‘

Grade_blackball_path=‘./sources/other/grade_blackball.png‘
white_gold_Medal_image_path=‘./sources/medal/white_gold_medal.png‘  #奖牌图片
gold_image_path=‘./sources/medal/gold_medal.png‘
silver_medal_image_path=‘./sources/medal/silver_medal.png‘
bronze_medal_image_path=‘./sources/medal/bronze_medal.png‘

Ground_image_path=‘./sources

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       8858  2017-08-27 17:06  flappy-based-python\flappygamemain.py

     文件       3310  2017-08-27 17:07  flappy-based-python\gamerole.py

     文件       3680  2016-12-18 00:24  flappy-based-python\gamerole.pyc

     文件        332  2016-12-24 00:37  flappy-based-python\record.txt

     文件      34891  2014-02-13 16:58  flappy-based-python\sources\background\day.png

     文件       1889  2014-02-13 16:59  flappy-based-python\sources\background\ground.png

     文件      38889  2014-02-13 16:59  flappy-based-python\sources\background\night.png

     文件       2864  2014-02-13 21:36  flappy-based-python\sources\bird\down.png

     文件       2987  2014-02-13 21:36  flappy-based-python\sources\bird\med.png

     文件       2927  2014-02-13 21:34  flappy-based-python\sources\bird\up.png

     文件      73882  2014-02-13 17:04  flappy-based-python\sources\guide\day\down.png

     文件      72949  2014-02-13 17:04  flappy-based-python\sources\guide\day\med.png

     文件      73863  2014-02-13 17:04  flappy-based-python\sources\guide\day\up.png

     文件      82598  2014-02-13 17:05  flappy-based-python\sources\guide\night\down.png

     文件      83407  2014-02-13 17:06  flappy-based-python\sources\guide\night\med.png

     文件      82647  2014-02-13 17:05  flappy-based-python\sources\guide\night\up.png

     文件       5330  2014-02-13 17:01  flappy-based-python\sources\medal\bronze_medal.png

     文件       5568  2014-02-13 17:00  flappy-based-python\sources\medal\gold_medal.png

     文件       5198  2014-02-13 17:01  flappy-based-python\sources\medal\silver_medal.png

     文件       5893  2014-02-13 17:00  flappy-based-python\sources\medal\white_gold_medal.png

     文件       6446  2014-02-14 15:57  flappy-based-python\sources\other\billboard.png

     文件      27740  2014-02-13 17:03  flappy-based-python\sources\other\downing.png

     文件      15491  2014-02-14 16:18  flappy-based-python\sources\other\gameover.png

     文件      10599  2014-02-14 16:17  flappy-based-python\sources\other\grade_blackball.png

     文件       5067  2014-02-14 15:58  flappy-based-python\sources\other\restart.png

     文件      50831  2014-02-13 21:07  flappy-based-python\sources\other\start.png

     文件       4478  2014-02-14 14:53  flappy-based-python\sources\pilar\down.png

     文件       4473  2014-02-14 14:53  flappy-based-python\sources\pilar\up.png

     目录          0  2016-12-18 00:24  flappy-based-python\sources\guide\day

     目录          0  2016-12-18 00:24  flappy-based-python\sources\guide\night

............此处省略11个文件信息

评论

共有 条评论