From 7c7ea8449685868ec4a70a187afe5aa8653ee8b1 Mon Sep 17 00:00:00 2001 From: Paolo Brasolin <paolo.brasolin@eurac.edu> Date: Tue, 5 Apr 2022 18:03:57 +0200 Subject: [PATCH] fix: #fe increment phys FPS to avoid sprite overlap --- frontend/src/js/fight_scene.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/js/fight_scene.ts b/frontend/src/js/fight_scene.ts index f7220b5..9bae87f 100644 --- a/frontend/src/js/fight_scene.ts +++ b/frontend/src/js/fight_scene.ts @@ -106,6 +106,9 @@ export default class FightScene extends Phaser.Scene { true, ); + // NOTE: this helps w/ clue sprite overlap + this.physics.world.setFPS(2 * this.game.loop.targetFps); + this.physics.world.on( "worldbounds", function ( -- GitLab