Commit be4c0c77 by BellCodeEditor

save project

parent 0a65534b
Showing with 19 additions and 2 deletions
import pygame import pygame
from pygame import locals
pygame.init() pygame.init()
s=pygame.display.set_mode((660,480)) a=pygame.image.load("bg.png")
\ No newline at end of file b=pygame.image.load("right.png")
c=pygame.image.load("apple.png")
d=pygame.image.load("body.png")
screen=pygame.display.set_mode((660,480))
while True:
for event in pygame.event.get():
print(event)
if event.type==locals.QUIT:
exit()
screen.blit(a,(0,0))
screen.blit(c,(0,0))
screen.blit(b,(240,120))
screen.blit(d,(210,120))
screen.blit(d,(180,120))
screen.blit(d,(180,90))
pygame.display.update()
\ 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