Commit Graph

3 Commits

Author SHA1 Message Date
Brian Fertig 8e8bc514ad feat: Implement card data management with multiple decks
- Added card-data.js file to define four different decks (Player default, Warrior, Mage, Archer)
- Each deck contains 10 creature cards with randomized attack, shield, and health values
- Updated index.html to load the new card data script before main.js
- Modified main.js to initialize player deck using predefined deck1 instead of generating random cards
- Removed old deck generation code from main.js
2025-08-12 20:25:55 -06:00
Brian Fertig 282c30eba4 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
2025-08-12 19:40:02 -06:00
Brian Fertig 7d82c10713 first commit 2025-08-12 19:23:41 -06:00