From b26f9cead5b661c2caa02b1d9f57d56a493eab56 Mon Sep 17 00:00:00 2001 From: "NB-PBG2H23ABR\\bib" Date: Tue, 27 Aug 2024 10:22:57 +0200 Subject: [PATCH] intervall --- js/allg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/allg.js b/js/allg.js index 6ee2230..4b4e78d 100644 --- a/js/allg.js +++ b/js/allg.js @@ -3,7 +3,7 @@ let tomAnim = []; let enemyAnim = []; let playerAnimState = 0; let runDirection = 0; -let runSpeed = 25; +let runSpeed = 12; let animationSpeed = 50; let currentPosition = 0; let player = document.querySelector("#fuchs img"); @@ -24,7 +24,7 @@ function fillArrays() } // startGame -let start = setInterval(gameLoop, 100); +let start = setInterval(gameLoop, 50); function gameLoop() {