Commit 5d8bee71 by BellCodeEditor

save project

parent 249b2d13
Showing with 8 additions and 8 deletions
import pygame
from import pygame locals
from pygame import locals
# 初始化pygame,为使用pygame做准备
pygame.init()
......@@ -16,10 +16,10 @@ while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
screen.bilt(background,(0,0))
screen.bilt(right,(240,120))
screen.bilt(body,(210,120))
screen.bilt(body,(180,120))
screen.bilt(body,(180,90))
screen.bilt(food,(360,300))
pygame display.update()
screen.blit(background,(0,0))
screen.blit(right,(240,120))
screen.blit(body,(210,120))
screen.blit(body,(180,120))
screen.blit(body,(180,90))
screen.blit(food,(360,300))
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