Update documentation on touch control
This commit is contained in:
parent
377dda3db0
commit
eb088c0cf1
11
README.rst
11
README.rst
|
@ -58,13 +58,18 @@ F2
|
||||||
Move up.
|
Move up.
|
||||||
``s``
|
``s``
|
||||||
Move down.
|
Move down.
|
||||||
Right Mouse
|
|
||||||
Move the hero using mouse
|
|
||||||
Left Mouse
|
Left Mouse
|
||||||
Long-range attack.
|
Long-range attack.
|
||||||
Space
|
Right Mouse
|
||||||
Close-range attack, also dodge from bullets.
|
Close-range attack, also dodge from bullets.
|
||||||
|
|
||||||
|
Additionally, Brutal Maze also supports touch-friendly control. In this mode,
|
||||||
|
touches on different grid (empty, wall, enemy, hero) send different signals (to
|
||||||
|
guide the hero to either move or attack, or start new game). Albeit it is
|
||||||
|
implemented using *mouse button up* event, touch control is not a solution for
|
||||||
|
mouse-only input, but an attempt to support mobile GNU/Linux distribution such
|
||||||
|
as postmarketOS, i.e. it's meant to be played using two thumbs :-)
|
||||||
|
|
||||||
Configuration
|
Configuration
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ Space theme: no
|
||||||
|
|
||||||
[Control]
|
[Control]
|
||||||
# Touch-friendly control
|
# Touch-friendly control
|
||||||
Touch: yes
|
Touch: no
|
||||||
# Input values should be either from Mouse1 to Mouse3 or a keyboard key
|
# Input values should be either from Mouse1 to Mouse3 or a keyboard key
|
||||||
# and they are case-insensitively read.
|
# and they are case-insensitively read.
|
||||||
# Aliases for special keys are listed here (without the K_ part):
|
# Aliases for special keys are listed here (without the K_ part):
|
||||||
|
|
|
@ -84,7 +84,7 @@ class LockOn:
|
||||||
|
|
||||||
Attributes:
|
Attributes:
|
||||||
x, y (int): coordinates of the target (in grids)
|
x, y (int): coordinates of the target (in grids)
|
||||||
destroyed (bool): flag indicating if the target is destroyed
|
retired (bool): flag indicating if the target is retired
|
||||||
"""
|
"""
|
||||||
def __init__(self, x, y, retired=False):
|
def __init__(self, x, y, retired=False):
|
||||||
self.x, self.y = x, y
|
self.x, self.y = x, y
|
||||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
||||||
Subproject commit 3c1a1a840b6b9959b676a3937df1099dcb24fc4c
|
Subproject commit 4921800d525d36a2b48666c1fb938eabeeb33bb8
|
Loading…
Reference in New Issue