Commit 73e77494 by BellCodeEditor

auto save

parent cb42bb49
Showing with 19 additions and 0 deletions
import pygame
from pygame import locals
pygame.init()
guopi=pygame.image.load("gp.png")
screen=pygame.display.set_mode((660,480))
x=0
y=0
lock=pygame.time.Clock()
while True:
for event in pygame.event.get():
print(event)
if event.type==locals.QUIT:
exit()
x=x+10
screen.blit(guopi,(x,y))
pygame.display.update()
lock.tick(3)
\ No newline at end of file
gp.png

1.58 KB

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