2D Mode
Use WASD to move the box, it will be restricted to only move on the X/Y axis.
public beforeWorldCreate() {
this.world!.config.mode = '2d';
}
}
Use WASD to move the box, it will be restricted to only move on the X/Y axis.
public beforeWorldCreate() {
this.world!.config.mode = '2d';
}
}