Commit f287c7b7 by BellCodeEditor

save project

parent 8c3a167d
Showing with 6 additions and 6 deletions
import pygame
from pygame import locals
pygame.init()
by = pygame.image.load("by")
bg = pygame.image.load("bg.png")
head = pygame.image.load("right.png")
body = pygame.image.load("body.png")
food = pygame.image.load("apple.png")
screen = pygame.display.set_mode((660,488),0.32)
screen = pygame.display.set_mode((660,488))
while True:
for event in pygame.event.get():
print(event)
......@@ -15,5 +15,5 @@ while True:
screen.blit(head,(240,360))
screen.blit(body,(210,360))
screen.blit(body,(180,360))
screen.blit(food(120,180))
screen.display.update()
\ No newline at end of file
screen.blit(food,(120,180))
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