Commit 1d012233 by BellCodeEditor

save project

parent bf7d1e7d
Showing with 13 additions and 0 deletions
from pygame import locals from pygame import locals
import pygame import pygame
pygame.init() pygame.init()
s=pygame.image.load("bg.png")
z=pygame.image.load("right.png")
q=pygame.image.load('apple.png')
a=pygame.image.load('body.png')
s=pygame.display.set_mode((660,480)) s=pygame.display.set_mode((660,480))
while True: 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()
scieen.blit(s(0,0))
scieen.blit(z(240,120))
scieen.blit(q(300,1500))
scieen.blit(a(210,120))
scieen.blit(a(180,120))
scieen.blit(a(180,90))
pygame.display.update()
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