Commit 12f3ee96 by BellCodeEditor

save project

parent 6cac3751
Showing with 3 additions and 1 deletions
...@@ -3,7 +3,7 @@ from pygame import locals ...@@ -3,7 +3,7 @@ from pygame import locals
import os import os
pygame.init() pygame.init()
fpsclock=pygame.time.Clock();fpsclock.tick(100)
screen = pygame.display.set_mode((640, 480)) screen = pygame.display.set_mode((640, 480))
bg_img = pygame.image.load('background.png') # 背景图 bg_img = pygame.image.load('background.png') # 背景图
...@@ -95,3 +95,4 @@ while True: ...@@ -95,3 +95,4 @@ while True:
screen.blit(next_img, (420, 350)) screen.blit(next_img, (420, 350))
pygame.display.update() pygame.display.update()
fpsclock.tick(100)
\ 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