Commit 1cb4ba66 by BellCodeEditor

save project

parent 4ae55046
Showing with 12 additions and 3 deletions
import pygame import pygame
from pygame import locals
pygame.init() pygame.init()
background=pygame.image.load('bg.png')
snake=pygame.image.load('snake.png')
food=pygame.image.load('apple.png')
screen=pygame.dicplay.set_mode((660,480)) screen=pygame.dicplay.set_mode((660,480))
while True:
for event in pygame.event.get():
if event.tape==locals.QUIT:
exit()
screen.bilt(background,(0,0))
screen.bilt(right,(240,120))
screen.bilt(food(360,300))
pygame.dicplay.undate()
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