热门

最新

红包

立Flag

投票

同城

我的

发布
gaoyihan100305
gaoyihan20100305
4 年前
truegaoyihan100305

import pygame
import sys


class AlienInvasion:
def _init_(self):
pygame.init()
self.screen = pygame.display.set_mode((1200,800))
pygame.display.set_caption("Alien Invasion")
def run_game():
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit()
pygame.display.flip()

ai = AlienInvasion
ai.run_game()
#外星人入侵

代码片段分享
CSDN App 扫码分享
分享
评论
1
打赏
  • 复制链接
  • 举报
下一条:
执行cmake命令,看起来有希望成功
立即登录