Commit 39b4098c by BellCodeEditor

save project

parent c4cab620
Showing with 6 additions and 0 deletions
...@@ -14,6 +14,8 @@ while True: ...@@ -14,6 +14,8 @@ 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()
if event.type == locals.KEYDOWN:
if event.key == locals.K_RIGHT
x+=30 x+=30
screen.blit(bg,(0,0)) screen.blit(bg,(0,0))
screen.blit(c,(210,300)) screen.blit(c,(210,300))
...@@ -25,3 +27,6 @@ while True: ...@@ -25,3 +27,6 @@ while True:
# screen.blit(bb,(180,180)) # screen.blit(bb,(180,180))
pygame.display.update() pygame.display.update()
shi.tick(3) shi.tick(3)
\ 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