From 282c30eba446db9597955957480af22b8ae049d0 Mon Sep 17 00:00:00 2001 From: Brian Fertig Date: Tue, 12 Aug 2025 19:40:02 -0600 Subject: [PATCH] feat: Add card locking mechanism with play/cancel buttons and hand management - Implemented card locking functionality that prevents cards from being dragged after clicking - Added visual feedback for locked cards (raised position) - Created Play and Cancel buttons above locked cards to confirm or revert actions - Implemented game logic for moving cards to player field and returning them to hand - Enhanced user interaction with proper button handling and state management - Updated card display system to handle repositioning of remaining hand cards after interactions --- index.html | 2 + src/main.js | 168 +++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 168 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 5a07ee4..798340a 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,8 @@ Phaser 3 Card Battle Game + +