Commit e4b57e2a by BellCodeEditor

auto save

parent 6f61142c
Showing with 21 additions and 3 deletions
import pygame import pygame
from pygame import locals
pygame.init() pygame.init()
pygame.display.set_mode((800,600)) screen = pygame.display.set_mode((800,600))
\ No newline at end of file
bg = pygame.image.load("bg.png")
sn = pygame.image.load("right.png")
bd = pygame.image.load("body.png")
fd = pygame.image.load("apple.png")
while True:
for e in pygame.event.get():
print(e)
if e.type == locals.QUIT:
exit()
screen.blit(bg,(0,0))
screen.blit(sn,(240,120))
screen.blit(bd,(210,120))
screen.blit(bd,(180,120))
screen.blit(fd,(480,120))
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