Build a lobby and battle preparation screen with Game Agent

Follow the Zhao Yun and A Dou learning project from a Cocos Creator lobby into battle preparation. Inspect the stamina deduction, prefabs and verification scene.

Game Agent v0.4.3 Updated

Zhao Yun and A Dou is a Cocos Creator 3.8.8 learning project with a lobby, dialogs and a board preparation screen. It demonstrates how a UI action connects prefabs to game state. This revision lets you inspect the transition into preparation. Automatic battle and the complete combat loop are outside the verified scope.

Start in the business scene

Import the directory containing package.json in Cocos Dashboard and open assets/scenes/Game.scene. Check that the Inspector fields testScenario and testResourcePath are empty before starting Preview. The design resolution is 640 × 1386 with fit-to-width enabled. Inspect the lobby and its dialogs, then enter the preparation screen.

Trace the stamina deduction

The stage 03 handover describes a BattlePage check before the game deducts 5 stamina and creates an active run. With a test save, record stamina before and after entry and check that one action opens the screen and charges once. Try the ordinary recruit, deploy and merge operations against the handover. Long-press and special cancellation gestures still need testing. For an editable prefab in your own project, see the UI workflow example.

Check evidence and asset rights

Open assets/scenes/Verification.scene and select Run checks for the separate logic suite. The stage 02 handover records 58 passed checks in its development preview. Platform builds, physical devices and audio listening checks require separate verification. The repository includes third-party commercial game imagery and audio for study and grants no commercial rights to those assets. Use appropriately licensed replacements when shipping your own game.

Sources

Loading page views