Commit e845f68d by BellCodeEditor

save project

parent b1c766da
Showing with 3 additions and 2 deletions
......@@ -20,16 +20,17 @@ background = pygame.image.load('bg.png')
font = pygame.font.Font('STKAITI.TTF', 60) #
while True:
print(center)
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
if event.type == locals.KEYDOWN:
if event.key==locals.K_RIGHT:
if center[1]<15:
if center[1]<14:
center[1]+=1
elif event.key==locals.K_LEFT:
if center[1]>1:
if center[1]>2:
center[1]-=1
elif event.key==locals.K_DOWN:
if center[0]<25:
......
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