Commit 3de771b4 by BellCodeEditor

save project

parent 357d4faf
Showing with 6 additions and 20 deletions
import pygame import tkinter
from pygame import locals root=tkinter.Tk()
pygame.init() root.title("注册")
background=pygame.image.load("bg.png") root.geometry("400x320+500+300")
apple=pygame.image.load("apple") root.mainloop()
right=pygame.image.load("right.eng") \ No newline at end of file
body=pygame.image.load("body.eng")
screen=pygame.display.set_mode((660,480))
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
screen.blit(background,(0,0))
screen.blit(apple,(30,210))
screen.blit(right,(240,210))
screen.blit(body,(210,120))
screen.blit(body,(180,120))
screen.blit(body,(180,90))
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