framerate fix with speeds
This commit is contained in:
@@ -253,6 +253,9 @@ function draw() {
|
|||||||
gameOver();
|
gameOver();
|
||||||
// draw background
|
// draw background
|
||||||
background(0, 0, 0, 100);
|
background(0, 0, 0, 100);
|
||||||
|
ffps = frameRate();
|
||||||
|
shotSpeed = ffps / 4;
|
||||||
|
playerSpeed = ffps / 14;
|
||||||
|
|
||||||
if (homescreenOn) {
|
if (homescreenOn) {
|
||||||
homescreen();
|
homescreen();
|
||||||
|
Reference in New Issue
Block a user