From 3b4e1a865f1a114b76f355fcac818dd3404c157e Mon Sep 17 00:00:00 2001 From: Andrio Celos Date: Thu, 6 Oct 2022 10:58:41 +1100 Subject: [PATCH] Enhance keyboard controls The board can now receive focus. Hand buttons - arrows: move focus; Space/Enter: select card Board - arrows: move card; R: rotate clockwise; Shift+R: rotate anticlockwise; Space/Enter: submit play; Backspace/Escape: deselect card Either - p: toggle pass; s: toggle special attack --- TableturfBattleClient/index.html | 2 +- TableturfBattleClient/src/Board.ts | 56 +++++++++- TableturfBattleClient/src/Card.ts | 31 +++++- TableturfBattleClient/src/Pages/GamePage.ts | 108 ++++++++++++++++++-- TableturfBattleClient/tableturf.css | 2 +- 5 files changed, 182 insertions(+), 17 deletions(-) diff --git a/TableturfBattleClient/index.html b/TableturfBattleClient/index.html index 4d84495..70fc094 100644 --- a/TableturfBattleClient/index.html +++ b/TableturfBattleClient/index.html @@ -103,7 +103,7 @@
-
+