04 2022 档案
摘要:# 初始化键盘时刻 (ticks) ticks_K_a = 0 ticks_K_d = 0 # 初始化横向移动系数 [1,-1] sign_direction_horizonal = 0 # 主事件循环 while True: # 检测键盘按住的键位 累加键盘时刻 list_key_pressed
阅读全文
摘要:import pygame import os from pygame.locals import * from sys import exit # 声明全局变量 SCREEN_WIDTH = 1600 # 窗口分辨率 SCREEN_HEIGHT = 900 keylist_ad = [pygame
阅读全文

浙公网安备 33010602011771号