cocos-farm/docs/cocos_creator38_reconstruction_core.md

1.6 KiB

Cocos Creator 3.8 Reconstruction Core

This project rebuilds QQ Farm from the extracted original Cocos package using Cocos Creator 3.8.

The source package is /Users/hy/Documents/dev/qq_farm_godot_rebuild_20260616.

Core rules:

  • Original extracted Cocos data is the layout authority.
  • Godot output and screenshot-derived coordinates are not allowed.
  • Generated Cocos Creator 3.8 scene, prefab, and asset data must be traceable to source evidence.
  • Every module pass must export source evidence, generate a diagnostic Canvas preview, attempt Cocos verification, produce an ROI report, and update rebuild docs.
  • Runtime mocks may change visible state, but must not change recovered layout.
  • Do not document unresolved source gaps as a stopping state. Record the solution path, the exact source evidence still needed, the nearest executable implementation, and the verification command.

Current first sub-pass:

  • Cocos design/window size.
  • Main camera source values.
  • Root scene mount.
  • farm_scene_v3 world map root.
  • Background layers selected by FarmEnv.

First milestone scope:

  • Canvas
  • main Camera
  • root scene
  • background layers
  • 24 visible land plots
  • house
  • doghouse
  • bottom menu buttons

Known current solution paths:

  • Keep the generated Cocos Creator 3.8 project scaffold and scripts as the reproducible source of scene data.
  • Use /Applications/Cocos/Creator/3.8.8/CocosCreator.app/Contents/MacOS/CocosCreator, Node v20.20.2, and npm 10.8.2 for this reconstruction stage.
  • Continue camera drag, inertia, pinch, and zoom only after extracting the original runtime input script and verifying it against the recovered motion config.