framerate fix with speeds

This commit is contained in:
sam
2024-01-23 12:53:12 +01:00
parent b23fab4025
commit 81b7c82d2a

View File

@@ -253,6 +253,9 @@ function draw() {
gameOver();
// draw background
background(0, 0, 0, 100);
ffps = frameRate();
shotSpeed = ffps / 4;
playerSpeed = ffps / 14;
if (homescreenOn) {
homescreen();