Spaces:
Paused
Paused
Commit History
-
Touch / mobile controls — play the whole game by finger
Claude +1: Claude Opus 4.8Unverified signatureA full one-button, no-hover touch scheme layered alongside the existing mouse + keyboard path, plus a responsive HUD so a phone or tablet in landscape (the natural RTS orientation) is fully playable. Gestures (input.js touch handlers): • tap your unit/building ... select it (double-tap = all of that type on screen) • tap elsewhere ........... command the selection — move · tap a foe to attack · tap a node to gather · set a producing building's rally • one-finger drag ......... box-select your units • two-finger drag ......... pan · pinch ...... zoom (anchored on the pinch) • Build / Attack-Move ..... tap places the building / commits the attack-move The touch and mouse paths now share one set of helpers (applyBoxSelection / commandAt / selectSameTypeAt), so a finger-tap issues byte-identical orders to a right-click — the mouse handlers were refactored onto the same helpers with no behaviour change. camera.js: dragCamera + pinchZoomPan — pure v…e7bc56d