Playing with zoom levels
This commit is contained in:
parent
e7bbe29123
commit
0d6c4032d5
@ -1,8 +1,8 @@
|
|||||||
const DEBUG_MODE: boolean = !!process.env.DEBUG_MODE || false;
|
const DEBUG_MODE: boolean = !!process.env.DEBUG_MODE || false;
|
||||||
const API_URL = process.env.API_URL || "http://api.workadventure.localhost";
|
const API_URL = process.env.API_URL || "http://api.workadventure.localhost";
|
||||||
const ROOM = [process.env.ROOM || "THECODINGMACHINE"];
|
const ROOM = [process.env.ROOM || "THECODINGMACHINE"];
|
||||||
const RESOLUTION = 2;
|
const RESOLUTION = 4;
|
||||||
const ZOOM_LEVEL = 3/4;
|
const ZOOM_LEVEL = 1/*3/4*/;
|
||||||
|
|
||||||
export {
|
export {
|
||||||
DEBUG_MODE,
|
DEBUG_MODE,
|
||||||
|
@ -10,7 +10,7 @@ export class PlayableCaracter extends Phaser.Physics.Arcade.Sprite {
|
|||||||
|
|
||||||
this.scene.sys.updateList.add(this);
|
this.scene.sys.updateList.add(this);
|
||||||
this.scene.sys.displayList.add(this);
|
this.scene.sys.displayList.add(this);
|
||||||
this.setScale(2);
|
//this.setScale(2);
|
||||||
this.scene.physics.world.enableBody(this);
|
this.scene.physics.world.enableBody(this);
|
||||||
this.setImmovable(true);
|
this.setImmovable(true);
|
||||||
this.setCollideWorldBounds(true);
|
this.setCollideWorldBounds(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user