Commit 5b516558 by BellCodeEditor

save project

parent 5bd512f4
Showing with 6 additions and 0 deletions
...@@ -2,8 +2,14 @@ import pygame ...@@ -2,8 +2,14 @@ import pygame
from pygame import locals from pygame import locals
pygame.init() pygame.init()
screen = pygame.display.set_mode((660,480)) screen = pygame.display.set_mode((660,480))
background=pygame.image.load("bg.png")
food=pygame.image.load("apple.png")
right=pygame.image.load("")
body=pygame.image.load("")
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()
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