Skip to main content

2D Mode

Use WASD to move the box, it will be restricted to only move on the X/Y axis.

class GameState extends TGameState {
public beforeWorldCreate() {
this.world!.config.mode = '2d';
}
}