Commit 044b9354 by BellCodeEditor

save project

parent 491824ef
Showing with 23 additions and 0 deletions
import pygame
from pygame import locals
pygame.init()
screen=pygame.display.set_mode((600,480))
background = pygame.image.load("bg.png")
right = pygame.image.load("right.png")
apple = pygame.image.load("apple.png")
left = pygame.image.load("left.png")
up = pygame.image.load("up.png")
down = pygame.image.load("down.png")
while True:
for event in pygame.event.get()
if event.type == locals.QUIT:
exit()
screen.blit(background,(0,0))
screen.blit(fight,(240,120))
screen.blit(food,(360,300))
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