BlueGit

blue-star cellular-evolution

fixed game init still inputting desired fps even though the new framework version doesn't require it

timfa Tim · pushed by timfa

Authored 2021-10-09 · 5 years ago

Hash
345c6061b0d7be02040c9afac1113fbf9e40a5c7
Parent
8872e1b8
4 files changed +8 −5
js/game.js +2 −2
@@ -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
201function gameStart()
201function 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
212function update(deltaTime)
212function update(deltaTime)
js/lastbuild.txt +3 −0
@@ -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
src/build.bat +1 −1
@@ -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 off
2
2
3del .\js\game.js
3del .\js\game.js
4
4
src/main.js +2 −2
@@ -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
23function gameStart()
23function 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
34function update(deltaTime)
34function update(deltaTime)