Commit f287c7b7 by BellCodeEditor

save project

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