@gnsx/genesys.sdk 4.3.2 → 4.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/dependencies.js +1 -1
- package/dist/src/templates/src/templates/firstPerson/src/game.js +2 -5
- package/dist/src/templates/src/templates/fps/src/game.js +2 -5
- package/dist/src/templates/src/templates/freeCamera/src/game.js +2 -5
- package/dist/src/templates/src/templates/sideScroller/src/game.js +2 -5
- package/dist/src/templates/src/templates/thirdPerson/src/game.js +2 -5
- package/dist/src/templates/src/templates/vehicle/src/game.js +2 -5
- package/dist/src/templates/src/templates/vr-game/src/game.js +2 -5
- package/package.json +2 -2
- package/src/templates/src/templates/firstPerson/src/game.ts +2 -5
- package/src/templates/src/templates/fps/src/game.ts +2 -5
- package/src/templates/src/templates/freeCamera/src/game.ts +2 -5
- package/src/templates/src/templates/sideScroller/src/game.ts +2 -5
- package/src/templates/src/templates/thirdPerson/src/game.ts +2 -5
- package/src/templates/src/templates/vehicle/src/game.ts +2 -5
- package/src/templates/src/templates/vr-game/src/game.ts +2 -5
package/dist/src/dependencies.js
CHANGED
|
@@ -12,7 +12,7 @@ export const DEPENDENCIES = {
|
|
|
12
12
|
'@electron/rebuild': '4.0.2',
|
|
13
13
|
'@emotion/react': '11.14.0',
|
|
14
14
|
'@emotion/styled': '11.14.1',
|
|
15
|
-
'@gnsx/genesys.js': '4.2.
|
|
15
|
+
'@gnsx/genesys.js': '4.2.18',
|
|
16
16
|
'@mui/icons-material': '7.3.5',
|
|
17
17
|
'@mui/lab': '7.0.0',
|
|
18
18
|
'@mui/material': '7.3.5',
|
|
@@ -21,10 +21,7 @@ class FirstPersonGame extends ENGINE.BaseGameLoop {
|
|
|
21
21
|
this.world.addActors(this.pawn, this.controller);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
export function main(container,
|
|
25
|
-
const game = new FirstPersonGame(container,
|
|
26
|
-
...ENGINE.BaseGameLoop.DEFAULT_OPTIONS,
|
|
27
|
-
gameId
|
|
28
|
-
});
|
|
24
|
+
export function main(container, options) {
|
|
25
|
+
const game = new FirstPersonGame(container, options);
|
|
29
26
|
return game;
|
|
30
27
|
}
|
|
@@ -21,10 +21,7 @@ class MyGame extends ENGINE.BaseGameLoop {
|
|
|
21
21
|
this.world.addActors(this.pawn, this.controller);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
export function main(container,
|
|
25
|
-
const game = new MyGame(container,
|
|
26
|
-
...ENGINE.BaseGameLoop.DEFAULT_OPTIONS,
|
|
27
|
-
gameId
|
|
28
|
-
});
|
|
24
|
+
export function main(container, options) {
|
|
25
|
+
const game = new MyGame(container, options);
|
|
29
26
|
return game;
|
|
30
27
|
}
|
|
@@ -21,10 +21,7 @@ class MyGame extends ENGINE.BaseGameLoop {
|
|
|
21
21
|
this.world.addActors(this.pawn, this.controller);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
export function main(container,
|
|
25
|
-
const game = new MyGame(container,
|
|
26
|
-
...ENGINE.BaseGameLoop.DEFAULT_OPTIONS,
|
|
27
|
-
gameId
|
|
28
|
-
});
|
|
24
|
+
export function main(container, options) {
|
|
25
|
+
const game = new MyGame(container, options);
|
|
29
26
|
return game;
|
|
30
27
|
}
|
|
@@ -93,10 +93,7 @@ class SideScrollerGame extends ENGINE.BaseGameLoop {
|
|
|
93
93
|
super.destroy();
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
export function main(container,
|
|
97
|
-
const game = new SideScrollerGame(container,
|
|
98
|
-
...ENGINE.BaseGameLoop.DEFAULT_OPTIONS,
|
|
99
|
-
gameId
|
|
100
|
-
});
|
|
96
|
+
export function main(container, options) {
|
|
97
|
+
const game = new SideScrollerGame(container, options);
|
|
101
98
|
return game;
|
|
102
99
|
}
|
|
@@ -21,10 +21,7 @@ class ThirdPersonGame extends ENGINE.BaseGameLoop {
|
|
|
21
21
|
this.world.addActors(this.pawn, this.controller);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
export function main(container,
|
|
25
|
-
const game = new ThirdPersonGame(container,
|
|
26
|
-
...ENGINE.BaseGameLoop.DEFAULT_OPTIONS,
|
|
27
|
-
gameId
|
|
28
|
-
});
|
|
24
|
+
export function main(container, options) {
|
|
25
|
+
const game = new ThirdPersonGame(container, options);
|
|
29
26
|
return game;
|
|
30
27
|
}
|
|
@@ -24,10 +24,7 @@ class MyGame extends ENGINE.BaseGameLoop {
|
|
|
24
24
|
this.world.addActors(this.pawn, this.controller, uiHints);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
export function main(container,
|
|
28
|
-
const game = new MyGame(container,
|
|
29
|
-
...ENGINE.BaseGameLoop.DEFAULT_OPTIONS,
|
|
30
|
-
gameId
|
|
31
|
-
});
|
|
27
|
+
export function main(container, options) {
|
|
28
|
+
const game = new MyGame(container, options);
|
|
32
29
|
return game;
|
|
33
30
|
}
|
|
@@ -46,10 +46,7 @@ class MyGame extends ENGINE.BaseGameLoop {
|
|
|
46
46
|
this.world.addActors(this.pawn, this.controller);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
export function main(container,
|
|
50
|
-
const game = new MyGame(container,
|
|
51
|
-
...MyGame.DEFAULT_OPTIONS,
|
|
52
|
-
gameId
|
|
53
|
-
});
|
|
49
|
+
export function main(container, options) {
|
|
50
|
+
const game = new MyGame(container, options);
|
|
54
51
|
return game;
|
|
55
52
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnsx/genesys.sdk",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.4",
|
|
4
4
|
"description": "Genesys SDK - A development toolkit for game development",
|
|
5
5
|
"author": "Directive Games",
|
|
6
6
|
"main": "index.js",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"@electron/rebuild": "^4.0.2",
|
|
113
113
|
"@emotion/react": "^11.14.0",
|
|
114
114
|
"@emotion/styled": "^11.14.0",
|
|
115
|
-
"@gnsx/genesys.js": "^4.2.
|
|
115
|
+
"@gnsx/genesys.js": "^4.2.18",
|
|
116
116
|
"@mui/icons-material": "^7.1.0",
|
|
117
117
|
"@mui/lab": "^7.0.0-beta.12",
|
|
118
118
|
"@mui/material": "^7.1.0",
|
|
@@ -30,10 +30,7 @@ class FirstPersonGame extends ENGINE.BaseGameLoop {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export function main(container: HTMLElement,
|
|
34
|
-
const game = new FirstPersonGame(container,
|
|
35
|
-
...ENGINE.BaseGameLoop.DEFAULT_OPTIONS,
|
|
36
|
-
gameId
|
|
37
|
-
});
|
|
33
|
+
export function main(container: HTMLElement, options?: Partial<ENGINE.BaseGameLoopOptions>): ENGINE.IGameLoop {
|
|
34
|
+
const game = new FirstPersonGame(container, options);
|
|
38
35
|
return game;
|
|
39
36
|
}
|
|
@@ -30,10 +30,7 @@ class MyGame extends ENGINE.BaseGameLoop {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export function main(container: HTMLElement,
|
|
34
|
-
const game = new MyGame(container,
|
|
35
|
-
...ENGINE.BaseGameLoop.DEFAULT_OPTIONS,
|
|
36
|
-
gameId
|
|
37
|
-
});
|
|
33
|
+
export function main(container: HTMLElement, options?: Partial<ENGINE.BaseGameLoopOptions>): ENGINE.IGameLoop {
|
|
34
|
+
const game = new MyGame(container, options);
|
|
38
35
|
return game;
|
|
39
36
|
}
|
|
@@ -30,10 +30,7 @@ class MyGame extends ENGINE.BaseGameLoop {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export function main(container: HTMLElement,
|
|
34
|
-
const game = new MyGame(container,
|
|
35
|
-
...ENGINE.BaseGameLoop.DEFAULT_OPTIONS,
|
|
36
|
-
gameId
|
|
37
|
-
});
|
|
33
|
+
export function main(container: HTMLElement, options?: Partial<ENGINE.BaseGameLoopOptions>): ENGINE.IGameLoop {
|
|
34
|
+
const game = new MyGame(container, options);
|
|
38
35
|
return game;
|
|
39
36
|
}
|
|
@@ -112,10 +112,7 @@ class SideScrollerGame extends ENGINE.BaseGameLoop {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
export function main(container: HTMLElement,
|
|
116
|
-
const game = new SideScrollerGame(container,
|
|
117
|
-
...ENGINE.BaseGameLoop.DEFAULT_OPTIONS,
|
|
118
|
-
gameId
|
|
119
|
-
});
|
|
115
|
+
export function main(container: HTMLElement, options?: Partial<ENGINE.BaseGameLoopOptions>): ENGINE.IGameLoop {
|
|
116
|
+
const game = new SideScrollerGame(container, options);
|
|
120
117
|
return game;
|
|
121
118
|
}
|
|
@@ -30,10 +30,7 @@ class ThirdPersonGame extends ENGINE.BaseGameLoop {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
export function main(container: HTMLElement,
|
|
34
|
-
const game = new ThirdPersonGame(container,
|
|
35
|
-
...ENGINE.BaseGameLoop.DEFAULT_OPTIONS,
|
|
36
|
-
gameId
|
|
37
|
-
});
|
|
33
|
+
export function main(container: HTMLElement, options?: Partial<ENGINE.BaseGameLoopOptions>): ENGINE.IGameLoop {
|
|
34
|
+
const game = new ThirdPersonGame(container, options);
|
|
38
35
|
return game;
|
|
39
36
|
}
|
|
@@ -34,10 +34,7 @@ class MyGame extends ENGINE.BaseGameLoop {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export function main(container: HTMLElement,
|
|
38
|
-
const game = new MyGame(container,
|
|
39
|
-
...ENGINE.BaseGameLoop.DEFAULT_OPTIONS,
|
|
40
|
-
gameId
|
|
41
|
-
});
|
|
37
|
+
export function main(container: HTMLElement, options?: Partial<ENGINE.BaseGameLoopOptions>): ENGINE.IGameLoop {
|
|
38
|
+
const game = new MyGame(container, options);
|
|
42
39
|
return game;
|
|
43
40
|
}
|
|
@@ -57,10 +57,7 @@ class MyGame extends ENGINE.BaseGameLoop {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
export function main(container: HTMLElement,
|
|
61
|
-
const game = new MyGame(container,
|
|
62
|
-
...MyGame.DEFAULT_OPTIONS,
|
|
63
|
-
gameId
|
|
64
|
-
});
|
|
60
|
+
export function main(container: HTMLElement, options?: Partial<ENGINE.BaseGameLoopOptions>): ENGINE.IGameLoop {
|
|
61
|
+
const game = new MyGame(container, options);
|
|
65
62
|
return game;
|
|
66
63
|
}
|