def run_game():
# ??????????????
pygame.init()
#???init ?????
#screen = pygame.display.set_mode((1200, 800))
screen = pygame.display.set_mode((1200, 800))
pygame.display.set_caption("?????")
#???? ?????
#pygame.display.set_caption("Alien Invasion")
#??? ?? ??? ????surface,????????surface
# ????????
#???????,??????? ?? ???? ?????? ?????
while True:
# ?????????
for event in pygame.event.get():
if event.type == pygame.QUIT:
#event.type == pygame.QUIT: ?????????
sys.exit()
# ??????????
#???????????? ????????? ???? ??
pygame.display.flip()
12.3.1?????????alien_invasion.py 文件源码
python
阅读 30
收藏 0
点赞 0
评论 0
评论列表
文章目录