Commit a51bc220 by BellCodeEditor

save project

parent 47c27f8c
Showing with 2 additions and 240 deletions
import pygame you
from pygame import locals \ No newline at end of file
import pygame
from pygame import locals
# 初始化pygame,为使用硬件做准备
pygame.init()
FPSCLOCK = pygame.time.Clock()
aa=pygame.image.load("bg.png")
bb=pygame.image.load("right.png")
cc=pygame.image.load("apple.png")
dd=pygame.image.load("body.png")
# 创建一个窗口
screen = pygame.display.set_mode((660, 480))
x,y=240,120
position = [(180,90),(180,120),(210,120),(x,y)]
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
x += 30
position.append((x,y))
position.pop(0)
screen.blit(aa,(0,0))
screen.blit(bb,position[-1])
for i in range(len(position)-1):
screen.blit(dd,position[i])
screen.blit(cc,(360,300))
pygame.display.update()
FPSCLOCK.tick(3)
# 初始化pygame,为使用硬件做准备import pygame
from pygame import locals
# 初始化pygame,为使用硬件做准备
pygame.init()
FPSCLOCK = pygame.time.Clock()
aa=pygame.image.load("bg.png")
bb=pygame.image.load("right.png")
cc=pygame.image.load("apple.png")
dd=pygame.image.load("body.png")
# 创建一个窗口
screen = pygame.display.set_mode((660, 480))
x,y=240,120
position = [(180,90),(180,120),(210,120),(x,y)]
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
x += 30
position.append((x,y))
position.pop(0)
screen.blit(aa,(0,0))
screen.blit(bb,position[-1])
for i in range(len(position)-1):
screen.blit(dd,position[i])
screen.blit(cc,(360,300))
pygame.display.update()
FPSCLOCK.tick(3)
pygame.init()import pygame
from pygame import locals
# 初始化pygame,为使用硬件做准备
pygame.init()
FPSCLOCK = pygame.time.Clock()
aa=pygame.image.load("bg.png")
bb=pygame.image.load("right.png")
cc=pygame.image.load("apple.png")
dd=pygame.image.load("body.png")
# 创建一个窗口
screen = pygame.display.set_mode((660, 480))
x,y=240,120
position = [(180,90),(180,120),(210,120),(x,y)]
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
x += 30
position.append((x,y))
position.pop(0)
screen.blit(aa,(0,0))
screen.blit(bb,position[-1])
for i in range(len(position)-1):
screen.blit(dd,position[i])
screen.blit(cc,(360,300))
pygame.display.update()
FPSCLOCK.tick(3)
FPSCLOCK = pygame.time.Clock()import pygame
from pygame import locals
# 初始化pygame,为使用硬件做准备
pygame.init()
FPSCLOCK = pygame.time.Clock()
aa=pygame.image.load("bg.png")
bb=pygame.image.load("right.png")
cc=pygame.image.load("apple.png")
dd=pygame.image.load("body.png")
# 创建一个窗口
screen = pygame.display.set_mode((660, 480))
x,y=240,120
position = [(180,90),(180,120),(210,120),(x,y)]
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
x += 30
position.append((x,y))
position.pop(0)
screen.blit(aa,(0,0))
screen.blit(bb,position[-1])
for i in range(len(position)-1):
screen.blit(dd,position[i])
screen.blit(cc,(360,300))
pygame.display.update()
FPSCLOCK.tick(3)
aa=pygame.image.load("bg.png")import pygame
from pygame import locals
# 初始化pygame,为使用硬件做准备
pygame.init()
FPSCLOCK = pygame.time.Clock()
aa=pygame.image.load("bg.png")
bb=pygame.image.load("right.png")
cc=pygame.image.load("apple.png")
dd=pygame.image.load("body.png")
# 创建一个窗口
screen = pygame.display.set_mode((660, 480))
x,y=240,120
position = [(180,90),(180,120),(210,120),(x,y)]
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
x += 30
position.append((x,y))
position.pop(0)
screen.blit(aa,(0,0))
screen.blit(bb,position[-1])
for i in range(len(position)-1):
screen.blit(dd,position[i])
screen.blit(cc,(360,300))
pygame.display.update()
FPSCLOCK.tick(3)
bb=pygame.image.load("right.png")import pygame
from pygame import locals
# 初始化pygame,为使用硬件做准备
pygame.init()
FPSCLOCK = pygame.time.Clock()
aa=pygame.image.load("bg.png")
bb=pygame.image.load("right.png")
cc=pygame.image.load("apple.png")
dd=pygame.image.load("body.png")
# 创建一个窗口
screen = pygame.display.set_mode((660, 480))
x,y=240,120
position = [(180,90),(180,120),(210,120),(x,y)]
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
x += 30
position.append((x,y))
position.pop(0)
screen.blit(aa,(0,0))
screen.blit(bb,position[-1])
for i in range(len(position)-1):
screen.blit(dd,position[i])
screen.blit(cc,(360,300))
pygame.display.update()
FPSCLOCK.tick(3)
cc=pygame.image.load("apple.png")import pygame
from pygame import locals
# 初始化pygame,为使用硬件做准备
pygame.init()
FPSCLOCK = pygame.time.Clock()
aa=pygame.image.load("bg.png")
bb=pygame.image.load("right.png")
cc=pygame.image.load("apple.png")
dd=pygame.image.load("body.png")
# 创建一个窗口
screen = pygame.display.set_mode((660, 480))
x,y=240,120
position = [(180,90),(180,120),(210,120),(x,y)]
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
x += 30
position.append((x,y))
position.pop(0)
screen.blit(aa,(0,0))
screen.blit(bb,position[-1])
for i in range(len(position)-1):
screen.blit(dd,position[i])
screen.blit(cc,(360,300))
pygame.display.update()
FPSCLOCK.tick(3)
dd=pygame.image.load("body.png")
# 创建一个窗口
screen = pygame.display.set_mode((660, 480))
x,y=240,120
position = [(180,90),(180,120),(210,120),(x,y)]
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
# 接收到退出事件后退出程序
exit()
x += 30
position.append((x,y))
position.pop(0)
screen.blit(aa,(0,0))
screen.blit(bb,position[-1])
for i in range(len(position)-1):
screen.blit(dd,position[i])
screen.blit(cc,(360,300))
pygame.display.update()
FPSCLOCK.tick(3)
# 保存在服务器数据库中的用户密码(正确的密码)
# 请用input()实现用户输入账号、密码的功能
# 如果用户输入的账号、密码正确,提示登陆成功
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment