Commit 29af94ee by BellCodeEditor

auto save

parent 1587229f
Showing with 1 additions and 1 deletions
import pygame import pygame
from pygame import locals from pygame import locals
pygame.init() pygame.init()
screen = pygame.display.set_mode((660, 480)) screen = pygame.display.set_mode((660, 480))
...@@ -17,6 +16,7 @@ while True: ...@@ -17,6 +16,7 @@ while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
FPSCLOCK = pygame.time.Clock() FPSCLOCK = pygame.time.Clock()
FPSCLOCK.tick(FPS) FPSCLOCK.tick(FPS)
x+=30 x+=30
......
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