Commit 8bbd5d04 by BellCodeEditor

auto save

parent 66479042
Showing with 9 additions and 3 deletions
import pygame import pygame
from pygame import locals from pygame import locals
pygame.init() pygame.init()
pygame.image.load("bg.png,")
screen = pygame.display.set_mode((660,480)) screen = pygame.display.set_mode((660,480))
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT print(event)
exit() if event.type==locals.QUIT:
\ No newline at end of file exit()
screen.bist(background,(0,0))
screen.bist(right,(0,0))
screen.bist(food,(0,0))
pygame.display.updata()
\ 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