add render reset
This commit is contained in:
parent
f76d092b1f
commit
ff9259a0bb
@ -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 ?')
|
||||
|
@ -36,6 +36,9 @@
|
||||
### 命令
|
||||
|
||||
- 有点尴尬,`sr1` 的命令不大好使,改成 `debug` 了
|
||||
- `render`
|
||||
- `reset`
|
||||
- 用于重置现在这艘船的渲染 (避免你玩着玩着把船玩道不知道什么地方去了)
|
||||
|
||||
## 20230120 V 0.6.5.0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user