cloudronin commited on
Commit
7eb28c3
·
verified ·
1 Parent(s): ec98146

Walking moves to the right thumb

Browse files
Files changed (2) hide show
  1. README.md +3 -3
  2. index.html +8 -7
README.md CHANGED
@@ -39,12 +39,12 @@ Turn the phone sideways. Buttons appear in the bottom corners.
39
 
40
  | | |
41
  |---|---|
42
- | **left corner, the two arrows** | walk |
43
- | **TORCH** | hold it down — sword away, and you cannot move while looking |
44
  | **SWING** | swing |
45
  | **TAKE** | only appears when something is lying at your feet |
46
 
47
- You can hold a walk arrow and TORCH at the same time with two thumbs. He will
48
  stop walking, because looking means standing still.
49
 
50
  ## What to look for
 
39
 
40
  | | |
41
  |---|---|
42
+ | **right corner, the two arrows** | walk — it is what you do most, so it gets the right thumb |
43
+ | **TORCH**, left corner | hold it down — sword away, and you cannot move while looking |
44
  | **SWING** | swing |
45
  | **TAKE** | only appears when something is lying at your feet |
46
 
47
+ You can hold a walk arrow and TORCH at the same time, one thumb each. He will
48
  stop walking, because looking means standing still.
49
 
50
  ## What to look for
index.html CHANGED
@@ -19,8 +19,9 @@
19
  /* ---- touch controls -------------------------------------------------
20
  Only ever shown on a touch device. A phone has no keyboard, so without
21
  these you can raise the torch and swing but you cannot walk, and walking
22
- is most of this game. Parked in the bottom corners, over the black ground
23
- band, which is the least important part of the frame. */
 
24
  #pad { position:fixed; inset:0; pointer-events:none; }
25
  #pad[hidden] { display:none; }
26
  #pad .cluster { position:absolute; bottom:max(14px, env(safe-area-inset-bottom));
@@ -75,13 +76,13 @@
75
 
76
  <div id="pad" hidden>
77
  <div class="cluster left">
78
- <button type="button" class="arrow" data-act="left" aria-label="walk left">&#9664;</button>
79
- <button type="button" class="arrow" data-act="right" aria-label="walk right">&#9654;</button>
 
80
  </div>
81
  <div class="cluster right">
82
- <button type="button" class="wide" data-act="pickup" aria-label="take the object">TAKE</button>
83
- <button type="button" class="wide" data-act="attack" aria-label="swing the sword">SWING</button>
84
- <button type="button" data-act="torch" aria-label="hold to raise the torch">TORCH</button>
85
  </div>
86
  </div>
87
 
 
19
  /* ---- touch controls -------------------------------------------------
20
  Only ever shown on a touch device. A phone has no keyboard, so without
21
  these you can raise the torch and swing but you cannot walk, and walking
22
+ is most of this game — which is why walking is the one under the right
23
+ thumb. Parked in the bottom corners, over the black ground band, which is
24
+ the least important part of the frame. */
25
  #pad { position:fixed; inset:0; pointer-events:none; }
26
  #pad[hidden] { display:none; }
27
  #pad .cluster { position:absolute; bottom:max(14px, env(safe-area-inset-bottom));
 
76
 
77
  <div id="pad" hidden>
78
  <div class="cluster left">
79
+ <button type="button" data-act="torch" aria-label="hold to raise the torch">TORCH</button>
80
+ <button type="button" class="wide" data-act="attack" aria-label="swing the sword">SWING</button>
81
+ <button type="button" class="wide" data-act="pickup" aria-label="take the object">TAKE</button>
82
  </div>
83
  <div class="cluster right">
84
+ <button type="button" class="arrow" data-act="left" aria-label="walk left">&#9664;</button>
85
+ <button type="button" class="arrow" data-act="right" aria-label="walk right">&#9654;</button>
 
86
  </div>
87
  </div>
88