Update documentation on touch control

This commit is contained in:
Nguyễn Gia Phong 2018-10-08 22:07:30 +07:00
parent 377dda3db0
commit eb088c0cf1
4 changed files with 11 additions and 6 deletions

View File

@ -58,13 +58,18 @@ F2
Move up.
``s``
Move down.
Right Mouse
Move the hero using mouse
Left Mouse
Long-range attack.
Space
Right Mouse
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
-------------

View File

@ -13,7 +13,7 @@ Space theme: no
[Control]
# Touch-friendly control
Touch: yes
Touch: no
# Input values should be either from Mouse1 to Mouse3 or a keyboard key
# and they are case-insensitively read.
# Aliases for special keys are listed here (without the K_ part):

View File

@ -84,7 +84,7 @@ class LockOn:
Attributes:
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):
self.x, self.y = x, y

2
wiki

@ -1 +1 @@
Subproject commit 3c1a1a840b6b9959b676a3937df1099dcb24fc4c
Subproject commit 4921800d525d36a2b48666c1fb938eabeeb33bb8