Commit 47c27f8c by BellCodeEditor

auto save

parent 792e4b08
Showing with 203 additions and 0 deletions
import pygame import pygame
from pygame import locals from pygame import locals
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,为使用硬件做准备
pygame.init() pygame.init()
...@@ -27,6 +59,177 @@ while True: ...@@ -27,6 +59,177 @@ while True:
screen.blit(cc,(360,300)) screen.blit(cc,(360,300))
pygame.display.update() pygame.display.update()
FPSCLOCK.tick(3) 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()实现用户输入账号、密码的功能 # 请用input()实现用户输入账号、密码的功能
......
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