add render reset

This commit is contained in:
沈瑗杰 2023-01-25 11:11:45 +08:00
parent f76d092b1f
commit ff9259a0bb
2 changed files with 10 additions and 2 deletions

View File

@ -244,8 +244,13 @@ class SR1ShipRender(BaseScreen):
def on_command(self, command: CommandText):
if command.re_match('render'):
# self.render_ship()
self.need_draw = True
if command.re_match('reset'):
self.scale = 1
self.dx = 0
self.dy = 0
else:
# self.render_ship()
self.need_draw = True
print('应该渲染飞船的')
elif command.re_match('debug'):
print('sr ?')

View File

@ -36,6 +36,9 @@
### 命令
- 有点尴尬,`sr1` 的命令不大好使,改成 `debug`
- `render`
- `reset`
- 用于重置现在这艘船的渲染 (避免你玩着玩着把船玩道不知道什么地方去了)
## 20230120 V 0.6.5.0