Added a first zoom plate

Works great, let's make the code cleaner and use it everywhere
This commit is contained in:
2024-01-18 01:17:08 +01:00
parent 44c9f0c873
commit c07175f4fa
5 changed files with 70 additions and 21 deletions

View File

@@ -48,7 +48,7 @@ function animate() {
if(APP_DEBUG)console.log("Player position X : "+assets.player.scene.position.x+ " Y : "+assets.player.scene.position.y);
PlayerMovement.updatePlayerPositionAnimation(assets.player, camera, scene);//Updating player position and rotation
PlayerCollisions.checkPlayerCollisions(assets.player, assets.linkPlates);//Checking collisions with player
PlayerCollisions.checkPlayerCollisions(assets.player, assets.plates);//Checking collisions with player
Animations.updateAnimations(Clock.getDelta());//Playing animations
renderer.render( scene, camera );//Calculating and redering new frame