Commit e154c321 by BellCodeEditor

save project

parent 70a02184
Showing with 5 additions and 2 deletions
...@@ -2,10 +2,12 @@ import pygame ...@@ -2,10 +2,12 @@ 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))
background=pygame.image.load("bg.png") strawberry=pygame.image.load("bg.png")
apple=pygame.image.load("bg.png")
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type ==locals.QUIT: if event.type ==locals.QUIT:
exit() exit()
screen.blit(background,(0,0)) screen.blit(strawberry,(0,0))
screen.blit(apple,(420,150))
pygame.display.update() 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