Commit 0b913573 by BellCodeEditor

auto save

parent 803e2548
Showing with 15 additions and 0 deletions
import pygame
from pygame import locals
pygame.init()
screen = pygame.display.set_mode((800,600))
background = pygame.image.load('bg.png')
food = pygame.image.load('apple.png')
right = pygame.image.load('right.png')
while True:
for i in pygame.event.get():
if i.type == locals.QUIT:
exit()
screen.blit(background,(0,0))
screen.blit(food,(180,180))
screen.blit(right,(150,180))
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