field balance

This commit is contained in:
landgreen
2019-09-29 08:21:33 -07:00
parent e4f39cdca5
commit aec697c63d
5 changed files with 95 additions and 100 deletions

View File

@@ -38,11 +38,11 @@ const game = {
mobs.draw();
game.draw.cons();
game.draw.body();
mobs.loop();
mech.draw();
mech.hold();
level.drawFills();
game.draw.drawMapPath();
mobs.loop();
b.draw();
b.fire();
game.drawCircle();
@@ -222,7 +222,8 @@ const game = {
paused: false,
testing: false, //testing mode: shows wireframe and some variables
cycle: 0, //total cycles, 60 per second
fpsCap: 72, //limits frames per second to 144/2=72+1=73, on most monitors the fps is capped at 60fps by the hardware
fpsCap: 72, //limits frames per second to 144/2=72, on most monitors the fps is capped at 60fps by the hardware
fpsCapDefault: 72, //use to change fpsCap back to normal after a hit from a mob
cyclePaused: 0,
fallHeight: 3000, //below this y position the player dies
lastTimeStamp: 0, //tracks time stamps for measuring delta