From 0d6c4032d51c05e7e4d2f328c19c97779e9148c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Mon, 27 Apr 2020 18:12:36 +0200 Subject: [PATCH] Playing with zoom levels --- front/src/Enum/EnvironmentVariable.ts | 6 +++--- front/src/Phaser/Entity/PlayableCaracter.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/front/src/Enum/EnvironmentVariable.ts b/front/src/Enum/EnvironmentVariable.ts index db5b912c..6c0226a2 100644 --- a/front/src/Enum/EnvironmentVariable.ts +++ b/front/src/Enum/EnvironmentVariable.ts @@ -1,8 +1,8 @@ const DEBUG_MODE: boolean = !!process.env.DEBUG_MODE || false; const API_URL = process.env.API_URL || "http://api.workadventure.localhost"; const ROOM = [process.env.ROOM || "THECODINGMACHINE"]; -const RESOLUTION = 2; -const ZOOM_LEVEL = 3/4; +const RESOLUTION = 4; +const ZOOM_LEVEL = 1/*3/4*/; export { DEBUG_MODE, @@ -10,4 +10,4 @@ export { RESOLUTION, ZOOM_LEVEL, ROOM -} \ No newline at end of file +} diff --git a/front/src/Phaser/Entity/PlayableCaracter.ts b/front/src/Phaser/Entity/PlayableCaracter.ts index 3a18ea73..b84d2dd8 100644 --- a/front/src/Phaser/Entity/PlayableCaracter.ts +++ b/front/src/Phaser/Entity/PlayableCaracter.ts @@ -10,7 +10,7 @@ export class PlayableCaracter extends Phaser.Physics.Arcade.Sprite { this.scene.sys.updateList.add(this); this.scene.sys.displayList.add(this); - this.setScale(2); + //this.setScale(2); this.scene.physics.world.enableBody(this); this.setImmovable(true); this.setCollideWorldBounds(true); @@ -45,7 +45,7 @@ export class PlayableCaracter extends Phaser.Physics.Arcade.Sprite { this.setVelocity(0, 0); this.play(PlayerAnimationNames.None, true); } - + say(text: string) { if (this.bubble) return; this.bubble = new SpeechBubble(this.scene, this, text) @@ -55,4 +55,4 @@ export class PlayableCaracter extends Phaser.Physics.Arcade.Sprite { this.bubble = null; }, 3000) } -} \ No newline at end of file +}