Commit 7c2873e5 by BellCodeEditor

save project

parent eba9c68e
Showing with 16 additions and 5 deletions
import pygame import pygame
from import pygame from pygame import locals
pygame.init() pygame.init()
score=pygame.display.set_mode((660,480)) score=pygame.display.set_mode((660,480))
background=pygame.image.load("bg.png")
apple=pygame.image.load("apple.png")
right=pygame.image.load("right.png")
body=pygame.image.load("body.png")
while True: while True:
for event in pygame.event.get():
if even.type == : if event.type == locals.QUIT:
exit() exit()
\ No newline at end of file score.blit(background,(0,0))
score.blit(apple,(360,300))
score.blit(right,(240,120))
score.blit(body,(240,90))
score.blit(body,(240,60))
score.blit(body,(240,30))
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