How rudtjr1106/poketdesktop works
Poketdesktop is a desktop Pokémon-raising game backed by a shared server. The main loop is desktop exploration and wild encounters, followed by server-resolved battles and collection/progression shown in the desktop UI. Other major branches include gyms, player battles, raids, social/guild features, and inventory. The README documents these capabilities; source excerpts show selected client, battle, database, and shared-rule behavior, so links for unsampled feature modules are omitted or marked unverified.
Main entry points: app.py Desktop runtime · main.py Server application · db.py Game database · battle.py Battle engine
Components 24
Desktop game
- Desktop runtime
client/poketdesktop/app.py - API client
client/poketdesktop/api.py - World overlay
client/poketdesktop/overlay.py - Pokémon management
client/poketdesktop/ui_box.py - Bag and shop
client/poketdesktop/ui_bag.py - Gym interface
client/poketdesktop/ui_gym.py - Player battles
client/poketdesktop/ui_live_battle.py - Social and guild UI
client/poketdesktop/ui_guild.py
Game services
- Wild battle API
server/app/battle_routes.py - Gym service
server/app/gym.py - Player battle service
server/app/pvp.py - Raid service
server/app/raid.py - Items and inventory
server/app/items.py - Eggs
server/app/eggs.py - Server application
server/app/main.py
Shared game rules
- Pokémon rules
common/pokelogic.py - Battle engine
common/battle.py - Battle calculations
common/movecalc.py - Abilities and items
common/abilities.py - Held-item effects
common/held.py
Social play
- Guild services
server/app/guild.py - Friends and social
server/app/social.py
Persistence
- Game database
server/app/db.py
Other components
- Player
Connections 32
- Player → Desktop runtime: plays
- Desktop runtime → API client: calls
client/poketdesktop/app.py - Desktop runtime → World overlay: drives
client/poketdesktop/app.py - Desktop runtime → Pokémon management: opens
client/poketdesktop/app.py - Desktop runtime → Bag and shop: opens
client/poketdesktop/app.py - Desktop runtime → Gym interface: opens
- Desktop runtime → Player battles: shows
client/poketdesktop/app.py - Desktop runtime → Social and guild UI: opens
client/poketdesktop/app.py - API client → Server application: requests
- Server application → Wild battle API: routes
server/app/main.py - Server application → Gym service: routes
server/app/main.py - Server application → Player battle service: routes
server/app/main.py - Server application → Raid service: routes
server/app/main.py - Server application → Items and inventory: routes
server/app/main.py - Server application → Guild services: routes
server/app/main.py - Server application → Friends and social: routes
server/app/main.py - Wild battle API → Battle engine: resolves
server/app/battle_routes.py - Wild battle API → Game database: reads and writes
server/app/battle_routes.py - Wild battle API → Items and inventory: uses items
server/app/battle_routes.py - Battle engine → Abilities and items: uses
common/battle.py - Battle engine → Held-item effects: uses
common/battle.py - Battle engine → Battle calculations: calculates damage
common/battle.py - Battle engine → Pokémon rules: uses rules
common/battle.py - Abilities and items → Battle calculations: calculates
common/abilities.py - Held-item effects → Battle calculations: uses
common/held.py - Items and inventory → Game database: stores items
server/app/items.py - Items and inventory → Eggs: creates eggs
server/app/items.py - Player battle service → Game database: reads and writes
server/app/pvp.py - Gym service → Game database: uses
- Raid service → Game database: uses
- Guild services → Game database: uses
- Friends and social → Game database: uses