Skip to main content

Editor Setup

for debug purposes we will add some components to game

src/Bootstrapper.ts
.withChild(instantiater.buildGameObject("camera")
.withComponent(Camera)
.withComponent(EditorCameraController, c => {
c.mouseMoveButton = 0;
})
.withComponent(EditorGridRenderer, c => {
c.renderWidth = 50;
c.renderHeight = 50;
}))

These two components will be very helpful in creating grid-based 2D games.