Commit be1f1b2e by BellCodeEditor

auto save

parent 15a77a1e
Showing with 30 additions and 0 deletions
import pygame
from pygame import locals
pygame.init()
screen = pygame.display.set_mode((660,480))
bg = pygame.image.load('bg.png')
left = pygame.image.load('left.png')
body = pygame.image.load('body.png')
food = pygame.image.load('apple.png')
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
screen.blit(bg,(0,0))
screen.blit(food,(420,420))
screen.blit(left,(120,180))
screen.blit(body,(150,180))
screen.blit(body,(180,180))
screen.blit(body,(210,180))
screen.blit(body,(210,210))
screen.blit(body,(240,210))
screen.blit(body,(240,240))
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