Commit f285eb93 by BellCodeEditor

save project

parent e34fcd60
Showing with 9 additions and 1 deletions
...@@ -2,7 +2,14 @@ import pygame ...@@ -2,7 +2,14 @@ import pygame
from pygame import locals from pygame import locals
pygame.init() pygame.init()
screen=pygame.display.set_mode((800,600)) screen=pygame.display.set_mode((800,600))
strawberry=pygame.image.load('bg.png')
apple=pygame.image.load('apple.png')
right=pygame.image.load('right.png')
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event. ==locals.QUIT: if event.type ==locals.QUIT:
exit() exit()
screen.blit(strawberry,(0,0))
screen.blit(apple,(420,150))
screen.blit(right,(240,120))
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