fixed game init still inputting desired fps even though the new framework version doesn't require it
@@ -195,7 +195,7 @@ function init()
195
195
var width = window.innerWidth - 2;
196
196
var height = window.innerHeight - 2;
197
197
198
Game.initialize(0, 0, width, height, 600, gameStart);
198
Game.initialize(0, 0, width, height, gameStart);
199
199
}
200
200
201
201
function gameStart()
@@ -206,7 +206,7 @@ function gameStart()
206
206
207
207
GameAudio.init(sounds, soundsFolder);
208
208
209
//p1 = GameObject.create(playButton, GameWindow.width / 2, GameWindow.height / 2, s_playButton, 500);
209
p1 = GameObject.create(gemSpawner, GameWindow.width / 2, GameWindow.height / 2, null, 500);
210
210
}
211
211
212
212
function update(deltaTime)
@@ -195,7 +195,7 @@ function init()195
var width = window.innerWidth - 2;195
var width = window.innerWidth - 2;196
var height = window.innerHeight - 2;196
var height = window.innerHeight - 2;197
197
198
Game.initialize(0, 0, width, height, 600, gameStart);198
Game.initialize(0, 0, width, height, gameStart);199
}199
}200
200
201
function gameStart()201
function gameStart()@@ -206,7 +206,7 @@ function gameStart()206
206
207
GameAudio.init(sounds, soundsFolder);207
GameAudio.init(sounds, soundsFolder);208
208
209
//p1 = GameObject.create(playButton, GameWindow.width / 2, GameWindow.height / 2, s_playButton, 500);209
p1 = GameObject.create(gemSpawner, GameWindow.width / 2, GameWindow.height / 2, null, 500);210
}210
}211
211
212
function update(deltaTime)212
function update(deltaTime)@@ -2,3 +2,6 @@
2
2
-09-10-2021- 16:17
3
3
-09-10-2021- 16:18
4
4
-09-10-2021- 16:19
5
-09-10-2021- 16:23
6
-09-10-2021- 16:24
7
-09-10-2021- 16:24
@@ -2,3 +2,6 @@2
-09-10-2021- 16:17 2
-09-10-2021- 16:17 3
-09-10-2021- 16:18 3
-09-10-2021- 16:18 4
-09-10-2021- 16:19 4
-09-10-2021- 16:19 5
-09-10-2021- 16:23 6
-09-10-2021- 16:24 7
-09-10-2021- 16:24 @@ -1,4 +1,4 @@
1
1
@echo off
2
2
3
3
del .\js\game.js
4
4
@@ -1,4 +1,4 @@1
1
@echo off2
2
3
del .\js\game.js3
del .\js\game.js4
4
@@ -17,7 +17,7 @@ function init()
17
17
var width = window.innerWidth - 2;
18
18
var height = window.innerHeight - 2;
19
19
20
Game.initialize(0, 0, width, height, 600, gameStart);
20
Game.initialize(0, 0, width, height, gameStart);
21
21
}
22
22
23
23
function gameStart()
@@ -28,7 +28,7 @@ function gameStart()
28
28
29
29
GameAudio.init(sounds, soundsFolder);
30
30
31
//p1 = GameObject.create(playButton, GameWindow.width / 2, GameWindow.height / 2, s_playButton, 500);
31
p1 = GameObject.create(gemSpawner, GameWindow.width / 2, GameWindow.height / 2, null, 500);
32
32
}
33
33
34
34
function update(deltaTime)
@@ -17,7 +17,7 @@ function init()17
var width = window.innerWidth - 2;17
var width = window.innerWidth - 2;18
var height = window.innerHeight - 2;18
var height = window.innerHeight - 2;19
19
20
Game.initialize(0, 0, width, height, 600, gameStart);20
Game.initialize(0, 0, width, height, gameStart);21
}21
}22
22
23
function gameStart()23
function gameStart()@@ -28,7 +28,7 @@ function gameStart()28
28
29
GameAudio.init(sounds, soundsFolder);29
GameAudio.init(sounds, soundsFolder);30
30
31
//p1 = GameObject.create(playButton, GameWindow.width / 2, GameWindow.height / 2, s_playButton, 500);31
p1 = GameObject.create(gemSpawner, GameWindow.width / 2, GameWindow.height / 2, null, 500);32
}32
}33
33
34
function update(deltaTime)34
function update(deltaTime)