博弈级/菜单状态
import pygame from pygame import * WIN_WIDTH = 1120 - 320 WIN_HEIGHT = 960 - 320 HALF_WIDTH = int(WIN_WIDTH / 2) HALF_HEIGHT = int(WIN_HEIGHT / 2) DISPLAY = (WIN_WIDTH, WIN_HEIGHT) DEPTH = 0 FLAGS = 0 CAMERA_SLACK = 30 def main(): global level pygame.init() screen = pygame.display.set_mode(DISPLAY, FLAGS, DEPTH) pygame.display.set_caption("ABCDEFGHIJKLMNOPQRSTUVWXYZ") timer = pygame.time.Clock() level = 0 bg = Surface((32,32)) bg.convert() bg.fill(Color("#0094FF"))