Unity Bootstrap (2D Sim)
1) Create project (Unity Hub)
- •Use latest Unity LTS.
- •Template:
2D (URP)if you want lighting/post; otherwise2D Core. - •Enable packages early:
Input System,TextMeshPro.
2) Git setup checklist
- •Add a Unity
.gitignore(ignoreLibrary/,Temp/,obj/,Build/,Logs/). - •Commit a clean baseline after first project creation.
3) Folder structure (recommended)
- •
Assets/_Project/Scripts/{Core,Gameplay,UI} - •
Assets/_Project/Scenes - •
Assets/_Project/Prefabs - •
Assets/_Project/Data(ScriptableObjects) - •
Assets/_Project/Art,Assets/_Project/Audio
4) Minimal runtime scaffold
- •
BootScene:- •Loads config ScriptableObjects
- •Loads save (if exists) or creates new state
- •Loads
GameScene
- •
GameScene:- •Has
GameControllerwith:- •Tick loop (1 sec) + time scale (1/2/6x)
- •Hooks for UI to call commands (build, assign, upgrade)
- •Has
5) Next step
- •After this, use
unity-migrationto map and port the existing JS systems.