Commit b59cdb8a by BellCodeEditor

save project

parent e46fd0bb
Showing with 16 additions and 0 deletions
import pygame
from pygame import locals
pygame.init()
a = pygame.image.load('bg.png')
A = pygame.image.load('apple.png')
J = pygame.image.load('right.png')
screen = pygame.display.set_mode((660,480))
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
screen.blit(a,(0,0))
screen.blit(A,(390,330))
screen.blit(J,(300,150))
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