Commit 3f5f1699 by BellCodeEditor

save project

parent 623f4f65
Showing with 9 additions and 4 deletions
import pygame
form pygame import locals
from pygame import locals
pygame.init()
screen=pygame.display.set_mode((800,600))
bg=pygame.image.load("bg.png")
apple=pygame.image.load("apple.png")
while True:
for event in pygame.event.get():
if event.type== locals.QUIT
screen.done
print(event.type)
if event.type== locals.QUIT:
exit()
screen.blit(bg,(0,0))
screen.blit(apple,(100,100))
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