- Server Build:
cd server && npm run build - Server Start:
cd server && npm run start - Server Dev Mode:
cd server && npm run dev(auto-rebuild on changes) - Run Godot Project: Open project.godot in Godot Editor
- Use camelCase for variables, methods, and function names
- Use PascalCase for classes/interfaces
- Strong typing: avoid
anytype - Prefer async/await over Promise chains
- Import structure: Node modules first, then local modules
- Use snake_case for variables, methods, and function names
- Use PascalCase for classes
- Use type hints where possible:
var player: Player - Follow Godot singleton conventions (e.g.,
Engine,OS) - Prefer signals for communication between nodes
- Use descriptive names
- Keep functions small and focused
- Add comments for complex logic
- Error handling: prefer try/catch in TS, use assertions in GDScript