pygame
摘要:
```python import pygame from pygame.locals import (K_SPACE, KEYDOWN, QUIT) class Obj: def __init__(self): self.x = 400 self.y = 300 self.dir = 0 def update(self): # 更新位置 if self.dir == 0: self.up() el 阅读全文
posted @ 2020-04-01 20:54 HolaWorld 阅读(184) 评论(0) 推荐(0) 编辑