From 5bc94439838c2e695142cb745517cbbfe1a5aefa Mon Sep 17 00:00:00 2001 From: Denis Narush Date: Fri, 1 May 2020 23:04:33 +0300 Subject: [PATCH] howfix: init values in game module (#15) --- index.html | 2 +- modules/game.module.js | 5 ++--- package.json | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 66370f1..d595249 100644 --- a/index.html +++ b/index.html @@ -6,6 +6,6 @@ Chars Score - + \ No newline at end of file diff --git a/modules/game.module.js b/modules/game.module.js index 946bd28..c8868bd 100644 --- a/modules/game.module.js +++ b/modules/game.module.js @@ -1,12 +1,11 @@ export class G { - LANGS = ["EN"]; - LANG = 0; - constructor() { const width = 40 * 9.6; const height = 30 * 9.6; // FPS const FPS = 1000 / 120; + this.LANGS = ["EN"]; + this.LANG = 0; this.width = width; this.widthCenter = width / 2; diff --git a/package.json b/package.json index 15d9955..d9fda36 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chars-score", - "version": "1.3.0", + "version": "1.3.1", "description": "Chars shooter game", "scripts": { },