Skip to content

Commit

Permalink
howfix: init values in game module (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
denisnarush committed May 1, 2020
1 parent f93a295 commit 5bc9443
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<title>Chars Score</title>
</head>
<body>
<script src="./cs.js?v=1.3.0" type="module"></script>
<script src="./cs.js?v=1.3.1" type="module"></script>
</body>
</html>
5 changes: 2 additions & 3 deletions modules/game.module.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chars-score",
"version": "1.3.0",
"version": "1.3.1",
"description": "Chars shooter game",
"scripts": {
},
Expand Down

0 comments on commit 5bc9443

Please sign in to comment.