Commit 2c7b3734 by BellCodeEditor

auto save

parent 7748b77c
Showing with 18 additions and 0 deletions
import pygame
import random
from pygame import locals
pygame.init()
screen = pygame.display.set_mode((660, 480))
background = pygame.image.load('bg.png')
food = pygame.image.load('apple.png')
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
screen.blit(background,(0,0))
screen.blit(food,(0,0))
screen.blit(food,(0,450))
screen.blit(food,(630,0))
screen.blit(food,(630,450))
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