小鸟
小鸟游戏
import pygame import sys import random # 素材参考地址:https://www.aigei.com/s?q=flappy+bird&type=2d class Bird(object): """定义一个鸟类""" def __init__(self): """ ......
小鸟游戏
import pygame import sys import random import numpy as np class Bird(object): """定义一个鸟类""" def __init__(self): """定义初始化方法""" self.birdRect = pygame.Re ......
python博客作业6(压扁小鸟)
import pygame import sys import random import numpy as np class Bird(object): """定义一个鸟类""" def __init__(self): """定义初始化方法""" self.birdRect = pygame.Re ......
小鸟游戏
import pygameimport sysimport random class Bird(object): """定义一个鸟类""" def __init__(self): """定义初始化方法""" self.birdRect = pygame.Rect(65, 50, 50, 50) se ......
python博客作业6(压扁小鸟)
素材下载链接https://files.cnblogs.com/files/blogs/806410/assets.zip?t=1702797885&download=true import pygame import sys class Bird(object): """定义一个鸟类""" def ......
最后一次大作业——小鸟游戏
球弹起来: # -*- coding:utf-8 -*- import sys # 导入sys模块 import pygame # 导入pygame模块 pygame.init() # 初始化pygame size = width, height = 640, 480 # 设置窗口 screen = ......
P1941 [NOIP2014 提高组] 飞扬的小鸟
#include <cstdio> #include <algorithm> using namespace std; const int N = 10005; const int M = 1005; const int INF = 1e9; int up[N], down[N], low[N], ......