This repository has been archived on 2025-04-27. You can view files and clone it, but cannot push or open issues or pull requests.
Servers-Under-Maintenance-G.../classes/Game.js

50 lines
956 B
JavaScript

class Game {
static FPS = 30;
static TILESIZE = 16;
static TILES_X = 15;
static TILES_Y = 10;
static WIDTH = Game.TILESIZE * Game.TILES_X;
static HEIGHT = Game.TILESIZE * Game.TILES_Y;
static MIN_TIME_UNTIL_FAIL = 20;
static RANDOM_TIME_UNTIL_FAIL = 40;
static SERVER_ACCESS_DISTANCE = Game.TILESIZE + 3;
static PLAYER_SPEED = 3;
static PLAYER_OOE_SPEED = 1;
static PLAYER_MAX_ENERGY = Game.FPS * 5;
static INITIAL_SERVER_LOAD_GROWTH = 400;
static MAX_SERVER_LOAD = 1000000;
static PASSIVE_INCOME_PER_PLAYER = 0.06 / 400;
static FIX_SERVER_INCOME = 10;
static serverLoadGrowth = Game.INITIAL_SERVER_LOAD_GROWTH;
static serverLoad = 200;
static lastServerLoad = 200;
static money = 0;
static scale;
static c;
static cv;
static player;
static gamestate = "menu";
static tutorialStep = 0;
static tutorialServers = [];
static set scale(scale) {
Game.scale = scale;
}
static get scale() {
return Game.scale;
}
}