Commit 04aec434 by BellCodeEditor

save project

parent 848a1322
Showing with 3 additions and 3 deletions
from pygame import locals from pygame import locals
import pygame import pygame
pygame.init() pygame.init()
s=pygame.image.load("bg.png") t=pygame.image.load("bg.png")
z=pygame.image.load("right.png") z=pygame.image.load("right.png")
q=pygame.image.load('apple.png') q=pygame.image.load('apple.png')
a=pygame.image.load('body.png') a=pygame.image.load('body.png')
...@@ -11,9 +11,9 @@ while True: ...@@ -11,9 +11,9 @@ 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()
s.blit(s,(0,0)) s.blit(t,(0,0))
s.blit(z,(240,120)) s.blit(z,(240,120))
s.blit(q,(300,1500)) s.blit(q,(300,150))
s.blit(a,(210,120)) s.blit(a,(210,120))
s.blit(a,(180,120)) s.blit(a,(180,120))
s.blit(a,(180,90)) s.blit(a,(180,90))
......
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