Commit 652c1a77 by BellCodeEditor

save project

parent 32a1b34a
Showing with 13 additions and 4 deletions
...@@ -3,9 +3,19 @@ import pygame ...@@ -3,9 +3,19 @@ import pygame
from pygame import locals from pygame import locals
pygame.init() pygame.init()
back=pygame.image.load('bg.png')
green=pygame.display.set_mode((800,600)) snake=pygame.image.load('right.png')
apple=pygame.image.load('apple.png')
body=pygame.image.load('body.png')
green=pygame.display.set_mode((660,480))
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()
\ No newline at end of file green.blit(back,(0,0))
green.blit(snake,(120,240))
green.blit(apple,(180,120))
green.blit(body,(90,240))
green.blit(body,(90,270))
green.blit(body,(60,270))
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