Commit 60da868f by BellCodeEditor

save project

parent b4f7d312
apple.png

2.05 KB

bg.png

22.5 KB

body.png

1.4 KB

down.png

2.01 KB

left.png

2.07 KB

File added
right.png

2.05 KB

import pygame
pygame.init()
from pygame import locals
a=pygame.display.set_mode((800,600))
hua=pygame.image.load('bg.png')
tou1=pygame.image.load('right.png')
shen=pygame.image.load('body.png')
while True:
for b in pygame.event.get():
if b.type == locals.QUIT:
exit()
a.blit(hua,(0,0))
a.blit(tou1,(210,30))
a.blit(shen,(180,30))
a.blit(shen,(180,60))
a.blit(shen,(150,60))
a.blit(shen,(120,60))
pygame.display.update()
up.png

2.05 KB

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