mirror of
https://github.com/alexandria121/new.git
synced 2026-10-12 02:10:53 +00:00
bb0b2629bdf487e1d2cab59f893d022fec6d2f63
- Implemented drag-and-drop support for player creature slots, allowing players to move cards into designated slots. - Added spell casting functionality when dropping spell cards on player creature slots or artifact slots. - Introduced logging for drag-and-drop actions to aid in debugging and tracking card movements. - Enhanced visual feedback during drag-and-drop operations with background color changes for valid drop targets. - Updated GameView.xaml.cs to handle mouse events for player slots, artifact slots, and spell cards. - Improved card zoom functionality with a dedicated overlay for better user experience. - Modified assembly information and updated binary files for the NewGame.UI project.
Magical Deckbuilder
A WPF card game where you combine cards, build decks, and battle opponents.
Features
- Card Combining: Merge blank cards with elements to create unique cards
- Deck Building: Build custom decks from your card collection
- Battle System: Turn-based combat against AI opponents
- 8 Card Types: Spell, Creature, Artifact, Enchantment, Weapon, Armor, Event, Blank
- 8 Elements: Radioactivity, Flesh, Toxin, Fungus, Thermodynamics, Time, Food, Eldritch
- Rarity System: Common, Uncommon, Rare, and Legendary cards
Project Structure
MagicalDeckbuilder.Shared/ # Core game library
Cards/ - Card classes and types
Decks/ - Deck management
Game/ - Game logic, CardFactory, OpponentAI
Combining/ - Card combining system
Logging/ - Error logging
NewGame.UI/ # WPF application
Views/ - MenuView, GameView, BattleSelectView, etc.
ViewModels/ - MVVM ViewModels
Controls/ - Custom UI controls
Converters/ - Value converters
Styles/ - XAML styles and themes
Building
dotnet build
Running
dotnet run --project NewGame.UI
Requirements
- .NET 9.0
- Windows
Languages
C#
99.8%
PowerShell
0.2%