Commit 8094dabf by BellCodeEditor

auto save

parent 99bb7896
Showing with 3 additions and 0 deletions
......@@ -2,9 +2,11 @@ import pygame
from pygame import locals
import random
# 初始化pygame,为使用硬件做准备
pygame.init()
# 创建一个窗口
screen = pygame.display.set_mode((660, 480))
FPSCLOCK = pygame.time.Clock() # pygame时钟,控制游戏速度(帧数)
......@@ -13,6 +15,7 @@ b=random.randint(10,50)
c=random.randint(0,200)
d=random.randint(0,200)
e=random.randint(0,200)
# 背景
background = pygame.image.load('bg.png')
right = pygame.image.load('right.png') # 头 朝右
......
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