Commit b864ace0 by BellCodeEditor

save project

parent c8a3cc49
Showing with 21 additions and 2 deletions
import pygame
from pygame import locals
pygame.init()
scree=pygame.display.set_mode((660,480))
\ No newline at end of file
bg=pygame.image.load("bg.png")
right=pygame.image.load("right.png")
body=pygame.image.load("body.png")
food=pygame.image.load("apple.png")
scree=pygame.display.set_mode((660,480))
while True:
for event in pygame.event.get():
print(event)
if event.type==locals.QUIT:
exit()
scree.blit(bg,(0,0))
scree.blit(right,(240,120))
scree.blit(body,(210,60))
scree.blit(body,(210,90))
scree.blit(body,(210,120))
scree.blit(food,(600,240))
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