How jungmario/pyqt-sts2 works
This is a desktop, turn-based card-combat game built with PyQt. The user interacts with the game window to play cards or end a turn; the battle manager advances combat, while cards and effects resolve actions against the player and enemies. Lightning orbs add passive and evoked effects. The graph reflects the excerpts and SOURCE INDEX references; GUI-to-engine callback details beyond the shown startup and pile access are not assumed.
Main entry points: main.py Game Window · battle.py Battle Manager · cards.py Cards · entities.py Entities
Components 7
Desktop UI
- Game Window
main.py
Combat Engine
- Battle Manager
battle.py
Cards and Effects
- Cards
cards.py - Card Effects
effects.py
Combatants and Orbs
- Entities
entities.py - Lightning Orb
orbs.py
Other components
- Player
Connections 10
- Player → Game Window: uses
- Game Window → Battle Manager: starts combat
main.py - Game Window → Cards: builds deck
main.py - Game Window → Entities: creates combatants
main.py - Battle Manager → Cards: plays card
battle.py - Battle Manager → Entities: advances turns
battle.py - Battle Manager → Lightning Orb: triggers passive
battle.py - Cards → Card Effects: executes effects
cards.py - Card Effects → Lightning Orb: channels or evokes
effects.py - Entities → Lightning Orb: initializes orb
entities.py