Commit e514f2a9 by BellCodeEditor

save project

parent a623b058
Showing with 17 additions and 4 deletions
from pygame import *
init()
display.set_mode((660,480))
\ No newline at end of file
import pygame
from pygame import locals
pygame.init()
screen = pygame.display.set_mode((660,480))
background = pygame.image.load('bg.png')
head = pygame.image.load('up.png')
food = pygame.image.load('apple.png')
while True:
screen.blit(background,(0,0))
screen.blit(head,(120,120))
screen.blit(food,(120,90))
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
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