Commit 1c9a2dc8 by BellCodeEditor

save project

parent 7e95f3e8
Showing with 24 additions and 0 deletions
import pygame
from pygame import locals
pygame.init()
bg=pygame.image.load("bg.png")
right=pygame.image.load("right.png")
body=pygame.image.load("body.png")
food=pygame.image.load("apple.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(right,(0,0))
screen.blit(body,(30,0))
screen.blit(body,(30,30))
screen.blit(body,(60,30))
screen.blit(food,(90,30))
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