How aydanli/starship-forge works
星舰熔炉 is a Cocos Creator sci-fi game for Douyin; the web version is an older prototype, so this map focuses on the documented Cocos product. The main loop runs from login and progression through forge preparation, fleet deployment, auto-battle, settlement, and the next wave, with story and tutorial guidance. The README documents the Cocos module mapping and major capabilities; sampled implementation excerpts are from the web prototype, so Cocos-specific internal call edges are limited to documented relationships.
Main entry points: flow.ts Game Flow · battle.ts Auto Battle · GameApp.ts Game App View · forge.ts Forge & Merging
Components 22
Progression & UX
- Game Flow
cocos/assets/scripts/core/flow.ts - Commander Login
cocos/assets/scripts/core/user.ts - Menu & Star Map
cocos/assets/scripts/core/menu.ts - Story Cards
cocos/assets/scripts/core/story.ts - Story Content
cocos/assets/scripts/core/storyData.ts - Tutorial Guidance
cocos/assets/scripts/core/tutorial.ts
Battle Gameplay
- Forge & Merging
cocos/assets/scripts/core/forge.ts - Fleet Deployment
cocos/assets/scripts/core/board.ts - Auto Battle
cocos/assets/scripts/core/battle.ts - Fleet & Enemies
cocos/assets/scripts/core/fleet.ts - Faction Synergies
cocos/assets/scripts/core/synergy.ts - Rewards & Recruiting
cocos/assets/scripts/core/economy.ts - Game Configuration
cocos/assets/scripts/core/config.ts - Seeded Randomness
cocos/assets/scripts/core/rng.ts
Player Services
- Progress Save
cocos/assets/scripts/core/save.ts - Rewarded Ads
cocos/assets/scripts/core/ads.ts - Platform Adapter
cocos/assets/scripts/core/platform.ts
Presentation
- Game App View
cocos/assets/scripts/view/GameApp.ts - Texture Loader
cocos/assets/scripts/view/Tex.ts - Music Player
cocos/assets/scripts/view/Bgm.ts - Music Mapping
cocos/assets/scripts/core/bgm.ts
Other components
- Player
Connections 24
- Player → Game App View: plays
README.md - Game App View → Game Flow: routes flow
README.md - Game Flow → Commander Login: starts login
README.md - Game Flow → Menu & Star Map: opens menus
README.md - Menu & Star Map → Game Flow: starts run
README.md - Game Flow → Forge & Merging: starts preparation
README.md - Forge & Merging → Fleet Deployment: deploys fleet
README.md - Fleet Deployment → Auto Battle: starts battle
README.md - Auto Battle → Fleet & Enemies: uses units
README.md - Auto Battle → Faction Synergies: applies synergies
README.md - Auto Battle → Rewards & Recruiting: settles rewards
README.md - Rewards & Recruiting → Forge & Merging: funds preparation
README.md - Game Flow → Story Cards: queues story
README.md - Story Cards → Story Content: reads content
README.md - Tutorial Guidance → Game App View: shows guidance
README.md - Game Flow → Progress Save: persists progress
README.md - Rewards & Recruiting → Rewarded Ads: offers rewards
README.md - Rewarded Ads → Platform Adapter: uses adapter
README.md - Game App View → Texture Loader: loads artwork
README.md - Music Mapping → Music Player: selects music
README.md - Game App View → Music Player: plays music
README.md - Auto Battle → Seeded Randomness: draws gameplay randomness
README.md - Forge & Merging → Seeded Randomness: draws drop randomness
README.md - Auto Battle → Game Configuration: uses rules
README.md