@rpgjs/client 5.0.0-alpha.9 → 5.0.0-beta.10
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/CHANGELOG.md +37 -0
- package/LICENSE +19 -0
- package/dist/Game/AnimationManager.d.ts +8 -0
- package/dist/Game/AnimationManager.js +35 -0
- package/dist/Game/AnimationManager.js.map +1 -0
- package/dist/Game/AnimationManager.spec.d.ts +1 -0
- package/dist/Game/Event.d.ts +1 -1
- package/dist/Game/Event.js +12 -0
- package/dist/Game/Event.js.map +1 -0
- package/dist/Game/Map.d.ts +31 -2
- package/dist/Game/Map.js +138 -0
- package/dist/Game/Map.js.map +1 -0
- package/dist/Game/Object.d.ts +189 -0
- package/dist/Game/Object.js +255 -0
- package/dist/Game/Object.js.map +1 -0
- package/dist/Game/Player.d.ts +1 -1
- package/dist/Game/Player.js +12 -0
- package/dist/Game/Player.js.map +1 -0
- package/dist/Gui/Gui.d.ts +192 -7
- package/dist/Gui/Gui.js +475 -0
- package/dist/Gui/Gui.js.map +1 -0
- package/dist/Gui/Gui.spec.d.ts +1 -0
- package/dist/Gui/NotificationManager.d.ts +23 -0
- package/dist/Gui/NotificationManager.js +49 -0
- package/dist/Gui/NotificationManager.js.map +1 -0
- package/dist/Resource.d.ts +97 -0
- package/dist/Resource.js +133 -0
- package/dist/Resource.js.map +1 -0
- package/dist/RpgClient.d.ts +295 -13
- package/dist/RpgClientEngine.d.ts +671 -15
- package/dist/RpgClientEngine.js +1442 -0
- package/dist/RpgClientEngine.js.map +1 -0
- package/dist/Sound.d.ts +199 -0
- package/dist/Sound.js +167 -0
- package/dist/Sound.js.map +1 -0
- package/dist/_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js +9 -0
- package/dist/_virtual/_@oxc-project_runtime@0.130.0/helpers/decorateMetadata.js +6 -0
- package/dist/components/animations/animation.ce.js +23 -0
- package/dist/components/animations/animation.ce.js.map +1 -0
- package/dist/components/animations/hit.ce.js +64 -0
- package/dist/components/animations/hit.ce.js.map +1 -0
- package/dist/components/animations/index.d.ts +4 -0
- package/dist/components/animations/index.js +11 -0
- package/dist/components/animations/index.js.map +1 -0
- package/dist/components/character.ce.js +572 -0
- package/dist/components/character.ce.js.map +1 -0
- package/dist/components/dynamics/bar.ce.js +96 -0
- package/dist/components/dynamics/bar.ce.js.map +1 -0
- package/dist/components/dynamics/image.ce.js +23 -0
- package/dist/components/dynamics/image.ce.js.map +1 -0
- package/dist/components/dynamics/parse-value.d.ts +4 -0
- package/dist/components/dynamics/parse-value.js +63 -0
- package/dist/components/dynamics/parse-value.js.map +1 -0
- package/dist/components/dynamics/parse-value.spec.d.ts +1 -0
- package/dist/components/dynamics/shape-utils.d.ts +16 -0
- package/dist/components/dynamics/shape-utils.js +73 -0
- package/dist/components/dynamics/shape-utils.js.map +1 -0
- package/dist/components/dynamics/shape-utils.spec.d.ts +1 -0
- package/dist/components/dynamics/shape.ce.js +83 -0
- package/dist/components/dynamics/shape.ce.js.map +1 -0
- package/dist/components/dynamics/text.ce.js +50 -0
- package/dist/components/dynamics/text.ce.js.map +1 -0
- package/dist/components/gui/box.ce.js +26 -0
- package/dist/components/gui/box.ce.js.map +1 -0
- package/dist/components/gui/dialogbox/index.ce.js +198 -0
- package/dist/components/gui/dialogbox/index.ce.js.map +1 -0
- package/dist/components/gui/gameover.ce.js +169 -0
- package/dist/components/gui/gameover.ce.js.map +1 -0
- package/dist/components/gui/hud/hud.ce.js +83 -0
- package/dist/components/gui/hud/hud.ce.js.map +1 -0
- package/dist/components/gui/index.d.ts +15 -3
- package/dist/components/gui/index.js +14 -0
- package/dist/components/gui/menu/equip-menu.ce.js +427 -0
- package/dist/components/gui/menu/equip-menu.ce.js.map +1 -0
- package/dist/components/gui/menu/exit-menu.ce.js +55 -0
- package/dist/components/gui/menu/exit-menu.ce.js.map +1 -0
- package/dist/components/gui/menu/items-menu.ce.js +326 -0
- package/dist/components/gui/menu/items-menu.ce.js.map +1 -0
- package/dist/components/gui/menu/main-menu.ce.js +399 -0
- package/dist/components/gui/menu/main-menu.ce.js.map +1 -0
- package/dist/components/gui/menu/options-menu.ce.js +49 -0
- package/dist/components/gui/menu/options-menu.ce.js.map +1 -0
- package/dist/components/gui/menu/skills-menu.ce.js +102 -0
- package/dist/components/gui/menu/skills-menu.ce.js.map +1 -0
- package/dist/components/gui/mobile/index.d.ts +8 -0
- package/dist/components/gui/mobile/index.js +21 -0
- package/dist/components/gui/mobile/index.js.map +1 -0
- package/dist/components/gui/mobile/mobile.ce.js +79 -0
- package/dist/components/gui/mobile/mobile.ce.js.map +1 -0
- package/dist/components/gui/notification/notification.ce.js +62 -0
- package/dist/components/gui/notification/notification.ce.js.map +1 -0
- package/dist/components/gui/save-load.ce.js +211 -0
- package/dist/components/gui/save-load.ce.js.map +1 -0
- package/dist/components/gui/shop/shop.ce.js +614 -0
- package/dist/components/gui/shop/shop.ce.js.map +1 -0
- package/dist/components/gui/title-screen.ce.js +164 -0
- package/dist/components/gui/title-screen.ce.js.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +4 -0
- package/dist/components/player-components-utils.d.ts +67 -0
- package/dist/components/player-components-utils.js +162 -0
- package/dist/components/player-components-utils.js.map +1 -0
- package/dist/components/player-components-utils.spec.d.ts +1 -0
- package/dist/components/player-components.ce.js +188 -0
- package/dist/components/player-components.ce.js.map +1 -0
- package/dist/components/prebuilt/hp-bar.ce.js +113 -0
- package/dist/components/prebuilt/hp-bar.ce.js.map +1 -0
- package/dist/components/prebuilt/index.d.ts +19 -0
- package/dist/components/prebuilt/index.js +2 -0
- package/dist/components/prebuilt/light-halo.ce.js +70 -0
- package/dist/components/prebuilt/light-halo.ce.js.map +1 -0
- package/dist/components/scenes/canvas.ce.js +196 -0
- package/dist/components/scenes/canvas.ce.js.map +1 -0
- package/dist/components/scenes/draw-map.ce.js +79 -0
- package/dist/components/scenes/draw-map.ce.js.map +1 -0
- package/dist/components/scenes/event-layer.ce.js +29 -0
- package/dist/components/scenes/event-layer.ce.js.map +1 -0
- package/dist/core/inject.js +18 -0
- package/dist/core/inject.js.map +1 -0
- package/dist/core/setup.js +16 -0
- package/dist/core/setup.js.map +1 -0
- package/dist/decorators/spritesheet.d.ts +1 -0
- package/dist/decorators/spritesheet.js +11 -0
- package/dist/decorators/spritesheet.js.map +1 -0
- package/dist/index.d.ts +16 -1
- package/dist/index.js +45 -14
- package/dist/module.d.ts +43 -4
- package/dist/module.js +179 -0
- package/dist/module.js.map +1 -0
- package/dist/node_modules/.pnpm/@signe_di@3.0.1/node_modules/@signe/di/dist/index.js +167 -0
- package/dist/node_modules/.pnpm/@signe_di@3.0.1/node_modules/@signe/di/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@signe_reactive@3.0.1/node_modules/@signe/reactive/dist/index.js +239 -0
- package/dist/node_modules/.pnpm/@signe_reactive@3.0.1/node_modules/@signe/reactive/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@signe_room@3.0.1/node_modules/@signe/room/dist/chunk-EUXUH3YW.js +13 -0
- package/dist/node_modules/.pnpm/@signe_room@3.0.1/node_modules/@signe/room/dist/chunk-EUXUH3YW.js.map +1 -0
- package/dist/node_modules/.pnpm/@signe_room@3.0.1/node_modules/@signe/room/dist/index.js +696 -0
- package/dist/node_modules/.pnpm/@signe_room@3.0.1/node_modules/@signe/room/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@signe_sync@3.0.1/node_modules/@signe/sync/dist/client/index.js +44 -0
- package/dist/node_modules/.pnpm/@signe_sync@3.0.1/node_modules/@signe/sync/dist/client/index.js.map +1 -0
- package/dist/node_modules/.pnpm/@signe_sync@3.0.1/node_modules/@signe/sync/dist/index.js +241 -0
- package/dist/node_modules/.pnpm/@signe_sync@3.0.1/node_modules/@signe/sync/dist/index.js.map +1 -0
- package/dist/node_modules/.pnpm/partysocket@1.1.3/node_modules/partysocket/dist/chunk-HAC622V3.js +115 -0
- package/dist/node_modules/.pnpm/partysocket@1.1.3/node_modules/partysocket/dist/chunk-HAC622V3.js.map +1 -0
- package/dist/node_modules/.pnpm/partysocket@1.1.3/node_modules/partysocket/dist/chunk-S74YV6PU.js +401 -0
- package/dist/node_modules/.pnpm/partysocket@1.1.3/node_modules/partysocket/dist/chunk-S74YV6PU.js.map +1 -0
- package/dist/node_modules/.pnpm/partysocket@1.1.3/node_modules/partysocket/dist/index.js +2 -0
- package/dist/node_modules/.pnpm/zod@3.24.2/node_modules/zod/lib/index.js +3756 -0
- package/dist/node_modules/.pnpm/zod@3.24.2/node_modules/zod/lib/index.js.map +1 -0
- package/dist/presets/animation.d.ts +31 -0
- package/dist/presets/animation.js +39 -0
- package/dist/presets/animation.js.map +1 -0
- package/dist/presets/faceset.d.ts +30 -0
- package/dist/presets/faceset.js +51 -0
- package/dist/presets/faceset.js.map +1 -0
- package/dist/presets/icon.d.ts +20 -0
- package/dist/presets/icon.js +15 -0
- package/dist/presets/icon.js.map +1 -0
- package/dist/presets/index.d.ts +123 -0
- package/dist/presets/index.js +17 -0
- package/dist/presets/index.js.map +1 -0
- package/dist/presets/lpc.d.ts +89 -0
- package/dist/presets/lpc.js +98 -0
- package/dist/presets/lpc.js.map +1 -0
- package/dist/presets/rmspritesheet.js +42 -0
- package/dist/presets/rmspritesheet.js.map +1 -0
- package/dist/services/AbstractSocket.d.ts +9 -5
- package/dist/services/AbstractSocket.js +11 -0
- package/dist/services/AbstractSocket.js.map +1 -0
- package/dist/services/keyboardControls.d.ts +15 -0
- package/dist/services/keyboardControls.js +23 -0
- package/dist/services/keyboardControls.js.map +1 -0
- package/dist/services/loadMap.d.ts +6 -0
- package/dist/services/loadMap.js +123 -0
- package/dist/services/loadMap.js.map +1 -0
- package/dist/services/mmorpg.d.ts +21 -9
- package/dist/services/mmorpg.js +136 -0
- package/dist/services/mmorpg.js.map +1 -0
- package/dist/services/save.d.ts +19 -0
- package/dist/services/save.js +77 -0
- package/dist/services/save.js.map +1 -0
- package/dist/services/save.spec.d.ts +1 -0
- package/dist/services/standalone.d.ts +67 -7
- package/dist/services/standalone.js +168 -0
- package/dist/services/standalone.js.map +1 -0
- package/dist/utils/getEntityProp.d.ts +39 -0
- package/dist/utils/getEntityProp.js +53 -0
- package/dist/utils/getEntityProp.js.map +1 -0
- package/dist/utils/getEntityProp.spec.d.ts +1 -0
- package/dist/utils/readPropValue.d.ts +2 -0
- package/dist/utils/readPropValue.js +13 -0
- package/dist/utils/readPropValue.js.map +1 -0
- package/package.json +14 -11
- package/src/Game/AnimationManager.spec.ts +30 -0
- package/src/Game/AnimationManager.ts +33 -0
- package/src/Game/Event.ts +1 -1
- package/src/Game/Map.ts +184 -3
- package/src/Game/Object.ts +409 -14
- package/src/Game/Player.ts +1 -1
- package/src/Gui/Gui.spec.ts +273 -0
- package/src/Gui/Gui.ts +566 -23
- package/src/Gui/NotificationManager.ts +69 -0
- package/src/Resource.ts +149 -0
- package/src/RpgClient.ts +309 -14
- package/src/RpgClientEngine.ts +1790 -63
- package/src/Sound.ts +253 -0
- package/src/components/{effects → animations}/animation.ce +3 -6
- package/src/components/{effects → animations}/index.ts +1 -1
- package/src/components/character.ce +801 -59
- package/src/components/dynamics/bar.ce +87 -0
- package/src/components/dynamics/image.ce +20 -0
- package/src/components/dynamics/parse-value.spec.ts +83 -0
- package/src/components/dynamics/parse-value.ts +154 -0
- package/src/components/dynamics/shape-utils.spec.ts +46 -0
- package/src/components/dynamics/shape-utils.ts +61 -0
- package/src/components/dynamics/shape.ce +89 -0
- package/src/components/dynamics/text.ce +68 -0
- package/src/components/gui/box.ce +17 -0
- package/src/components/gui/dialogbox/index.ce +213 -187
- package/src/components/gui/gameover.ce +158 -0
- package/src/components/gui/hud/hud.ce +61 -0
- package/src/components/gui/index.ts +30 -4
- package/src/components/gui/menu/equip-menu.ce +410 -0
- package/src/components/gui/menu/exit-menu.ce +41 -0
- package/src/components/gui/menu/items-menu.ce +317 -0
- package/src/components/gui/menu/main-menu.ce +294 -0
- package/src/components/gui/menu/options-menu.ce +35 -0
- package/src/components/gui/menu/skills-menu.ce +83 -0
- package/src/components/gui/mobile/index.ts +24 -0
- package/src/components/gui/mobile/mobile.ce +80 -0
- package/src/components/gui/notification/notification.ce +51 -0
- package/src/components/gui/save-load.ce +208 -0
- package/src/components/gui/shop/shop.ce +493 -0
- package/src/components/gui/title-screen.ce +163 -0
- package/src/components/index.ts +3 -0
- package/src/components/player-components-utils.spec.ts +109 -0
- package/src/components/player-components-utils.ts +205 -0
- package/src/components/player-components.ce +221 -0
- package/src/components/prebuilt/hp-bar.ce +255 -0
- package/src/components/prebuilt/index.ts +24 -0
- package/src/components/prebuilt/light-halo.ce +148 -0
- package/src/components/scenes/canvas.ce +185 -21
- package/src/components/scenes/draw-map.ce +55 -21
- package/src/components/scenes/event-layer.ce +8 -2
- package/src/components/scenes/transition.ce +60 -0
- package/src/core/setup.ts +2 -2
- package/src/decorators/spritesheet.ts +8 -0
- package/src/index.ts +17 -2
- package/src/module.ts +132 -10
- package/src/presets/animation.ts +46 -0
- package/src/presets/faceset.ts +60 -0
- package/src/presets/icon.ts +17 -0
- package/src/presets/index.ts +9 -1
- package/src/presets/lpc.ts +108 -0
- package/src/services/AbstractSocket.ts +10 -2
- package/src/services/keyboardControls.ts +20 -0
- package/src/services/loadMap.ts +3 -1
- package/src/services/mmorpg.ts +106 -12
- package/src/services/save.spec.ts +127 -0
- package/src/services/save.ts +103 -0
- package/src/services/standalone.ts +110 -18
- package/src/utils/getEntityProp.spec.ts +96 -0
- package/src/utils/getEntityProp.ts +88 -0
- package/src/utils/readPropValue.ts +16 -0
- package/vite.config.ts +4 -2
- package/dist/Game/EffectManager.d.ts +0 -5
- package/dist/components/effects/index.d.ts +0 -4
- package/dist/index.js.map +0 -1
- package/dist/index10.js +0 -8
- package/dist/index10.js.map +0 -1
- package/dist/index11.js +0 -10
- package/dist/index11.js.map +0 -1
- package/dist/index12.js +0 -8
- package/dist/index12.js.map +0 -1
- package/dist/index13.js +0 -17
- package/dist/index13.js.map +0 -1
- package/dist/index14.js +0 -107
- package/dist/index14.js.map +0 -1
- package/dist/index15.js +0 -50
- package/dist/index15.js.map +0 -1
- package/dist/index16.js +0 -191
- package/dist/index16.js.map +0 -1
- package/dist/index17.js +0 -9
- package/dist/index17.js.map +0 -1
- package/dist/index18.js +0 -387
- package/dist/index18.js.map +0 -1
- package/dist/index19.js +0 -31
- package/dist/index19.js.map +0 -1
- package/dist/index2.js +0 -181
- package/dist/index2.js.map +0 -1
- package/dist/index20.js +0 -24
- package/dist/index20.js.map +0 -1
- package/dist/index21.js +0 -2421
- package/dist/index21.js.map +0 -1
- package/dist/index22.js +0 -114
- package/dist/index22.js.map +0 -1
- package/dist/index23.js +0 -109
- package/dist/index23.js.map +0 -1
- package/dist/index24.js +0 -71
- package/dist/index24.js.map +0 -1
- package/dist/index25.js +0 -21
- package/dist/index25.js.map +0 -1
- package/dist/index26.js +0 -41
- package/dist/index26.js.map +0 -1
- package/dist/index27.js +0 -5
- package/dist/index27.js.map +0 -1
- package/dist/index28.js +0 -322
- package/dist/index28.js.map +0 -1
- package/dist/index29.js +0 -27
- package/dist/index29.js.map +0 -1
- package/dist/index3.js +0 -87
- package/dist/index3.js.map +0 -1
- package/dist/index30.js +0 -11
- package/dist/index30.js.map +0 -1
- package/dist/index31.js +0 -11
- package/dist/index31.js.map +0 -1
- package/dist/index32.js +0 -174
- package/dist/index32.js.map +0 -1
- package/dist/index33.js +0 -501
- package/dist/index33.js.map +0 -1
- package/dist/index34.js +0 -12
- package/dist/index34.js.map +0 -1
- package/dist/index35.js +0 -4403
- package/dist/index35.js.map +0 -1
- package/dist/index36.js +0 -316
- package/dist/index36.js.map +0 -1
- package/dist/index37.js +0 -61
- package/dist/index37.js.map +0 -1
- package/dist/index38.js +0 -20
- package/dist/index38.js.map +0 -1
- package/dist/index39.js +0 -20
- package/dist/index39.js.map +0 -1
- package/dist/index4.js +0 -67
- package/dist/index4.js.map +0 -1
- package/dist/index5.js +0 -16
- package/dist/index5.js.map +0 -1
- package/dist/index6.js +0 -17
- package/dist/index6.js.map +0 -1
- package/dist/index7.js +0 -39
- package/dist/index7.js.map +0 -1
- package/dist/index8.js +0 -108
- package/dist/index8.js.map +0 -1
- package/dist/index9.js +0 -76
- package/dist/index9.js.map +0 -1
- package/src/Game/EffectManager.ts +0 -20
- package/src/components/gui/dialogbox/itemMenu.ce +0 -23
- package/src/components/gui/dialogbox/selection.ce +0 -67
- /package/src/components/{effects → animations}/hit.ce +0 -0
|
@@ -1,194 +1,220 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
</
|
|
1
|
+
<DOMContainer width="100%" height="100%" controls={dialogControls}>
|
|
2
|
+
<div
|
|
3
|
+
class="rpg-ui-dialog-container"
|
|
4
|
+
data-position={dialogPosition()}
|
|
5
|
+
data-full-width={isFullWidth() ? "true" : "false"}
|
|
6
|
+
data-has-face={hasFace() ? "true" : "false"}
|
|
7
|
+
>
|
|
8
|
+
<div class="rpg-ui-dialog rpg-anim-fade-in">
|
|
9
|
+
<div class="rpg-ui-dialog-body">
|
|
10
|
+
<div>
|
|
11
|
+
@if (speakerName()) {
|
|
12
|
+
<div class="rpg-ui-dialog-speaker">{speakerName()}</div>
|
|
13
|
+
}
|
|
14
|
+
<div class="rpg-ui-dialog-content">
|
|
15
|
+
{displayMessage()}
|
|
16
|
+
</div>
|
|
17
|
+
@if (hasChoices()) {
|
|
18
|
+
<Navigation tabindex={selectedItem} controls={controls}>
|
|
19
|
+
<div class="rpg-ui-dialog-choices">
|
|
20
|
+
@for ((choice,index) of choices) {
|
|
21
|
+
<div
|
|
22
|
+
class="rpg-ui-dialog-choice"
|
|
23
|
+
class={{active: selectedItem() === index}}
|
|
24
|
+
tabindex={index}
|
|
25
|
+
data-choice-index={index}
|
|
26
|
+
click={selectChoice(index)}
|
|
27
|
+
>{{ choice.text }}</div>
|
|
28
|
+
}
|
|
29
|
+
</div>
|
|
30
|
+
</Navigation>
|
|
31
|
+
}
|
|
32
|
+
</div>
|
|
33
|
+
@if (hasFace()) {
|
|
34
|
+
<div class="rpg-ui-dialog-face">
|
|
35
|
+
<DOMSprite
|
|
36
|
+
sheet={faceSheet(dialogFace())}
|
|
37
|
+
width="100%"
|
|
38
|
+
height="100%"
|
|
39
|
+
objectFit="contain"
|
|
40
|
+
/>
|
|
41
|
+
</div>
|
|
42
|
+
}
|
|
43
|
+
</div>
|
|
44
|
+
@if (showIndicator) {
|
|
45
|
+
<div class="rpg-ui-dialog-indicator"></div>
|
|
46
|
+
}
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</DOMContainer>
|
|
50
|
+
|
|
48
51
|
<script>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
onComplete: () => {
|
|
129
|
-
isTextCompleted.set(true);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
const textStyle = {
|
|
134
|
-
wordWrap: true,
|
|
135
|
-
wordWrapWidth: 700 - 256 - 80
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
const face = signal({ x: 0, y: 0, width: 256, height: 256 });
|
|
139
|
-
|
|
140
|
-
mount((element) => {
|
|
141
|
-
const [dialogbox] = element.props.children
|
|
142
|
-
return () => {
|
|
143
|
-
dialogbox.directives.controls.onDestroy()
|
|
144
|
-
isDestroyed = true;
|
|
145
|
-
// Wait destroy is finished before start processing input
|
|
146
|
-
setTimeout(() => {
|
|
147
|
-
client.stopProcessingInput = false;
|
|
148
|
-
}, 500)
|
|
149
|
-
}
|
|
150
|
-
})
|
|
151
|
-
|
|
152
|
-
const controls = signal({
|
|
153
|
-
next: {
|
|
154
|
-
bind: keyboardControls.action,
|
|
155
|
-
keyDown(e) {
|
|
156
|
-
if (isDestroyed) return;
|
|
157
|
-
if (isChoiceDisplayed()) {
|
|
158
|
-
// If choices are displayed, do nothing (wait for selection)
|
|
159
|
-
return;
|
|
52
|
+
import { effect, signal, computed, createTabindexNavigator, mount } from "canvasengine";
|
|
53
|
+
import { inject } from "../../../core/inject";
|
|
54
|
+
import { RpgClientEngine } from "../../../RpgClientEngine";
|
|
55
|
+
import { delay } from "@rpgjs/common";
|
|
56
|
+
|
|
57
|
+
const engine = inject(RpgClientEngine);
|
|
58
|
+
const currentPlayer = engine.scene.currentPlayer
|
|
59
|
+
const keyboardControls = engine.globalConfig.keyboardControls;
|
|
60
|
+
|
|
61
|
+
engine.stopProcessingInput = true;
|
|
62
|
+
|
|
63
|
+
const selectedItem = signal(0)
|
|
64
|
+
let isDestroyed = false;
|
|
65
|
+
|
|
66
|
+
const {
|
|
67
|
+
data,
|
|
68
|
+
onFinish,
|
|
69
|
+
onInteraction
|
|
70
|
+
} = defineProps();
|
|
71
|
+
|
|
72
|
+
const { message, choices, face, speaker, position, typewriterEffect, autoClose } = data();
|
|
73
|
+
const fullWidth = computed(() => data().fullWidth || false);
|
|
74
|
+
|
|
75
|
+
const resolveProp = (value) => typeof value === "function" ? value() : value;
|
|
76
|
+
|
|
77
|
+
const speakerName = computed(() => {
|
|
78
|
+
const value = resolveProp(speaker);
|
|
79
|
+
return value ? String(value) : "";
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
const dialogPosition = computed(() => resolveProp(position) || "bottom");
|
|
83
|
+
const isFullWidth = computed(() => resolveProp(fullWidth) !== false);
|
|
84
|
+
const dialogFace = computed(() => resolveProp(face));
|
|
85
|
+
const hasFace = computed(() => {
|
|
86
|
+
const value = dialogFace();
|
|
87
|
+
return !!(value && value.id);
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
const displayMessage = signal("");
|
|
91
|
+
const fullMessage = signal("");
|
|
92
|
+
const isTyping = signal(false);
|
|
93
|
+
let typewriterTimer = null;
|
|
94
|
+
let rootElement = null;
|
|
95
|
+
|
|
96
|
+
mount((element) => {
|
|
97
|
+
rootElement = element;
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
const startTypewriter = (text) => {
|
|
101
|
+
if (typewriterTimer) clearInterval(typewriterTimer);
|
|
102
|
+
displayMessage.set("");
|
|
103
|
+
if (!text) return;
|
|
104
|
+
let index = 0;
|
|
105
|
+
isTyping.set(true);
|
|
106
|
+
typewriterTimer = setInterval(() => {
|
|
107
|
+
index += 1;
|
|
108
|
+
displayMessage.set(text.slice(0, index));
|
|
109
|
+
if (index >= text.length) {
|
|
110
|
+
clearInterval(typewriterTimer);
|
|
111
|
+
typewriterTimer = null;
|
|
112
|
+
isTyping.set(false);
|
|
113
|
+
}
|
|
114
|
+
}, 20);
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
const finishTyping = () => {
|
|
118
|
+
if (typewriterTimer) clearInterval(typewriterTimer);
|
|
119
|
+
typewriterTimer = null;
|
|
120
|
+
displayMessage.set(fullMessage());
|
|
121
|
+
isTyping.set(false);
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
effect(() => {
|
|
125
|
+
const text = resolveProp(message) || "";
|
|
126
|
+
fullMessage.set(text);
|
|
127
|
+
const useTypewriter = resolveProp(typewriterEffect) !== false;
|
|
128
|
+
if (!useTypewriter) {
|
|
129
|
+
finishTyping();
|
|
130
|
+
return;
|
|
160
131
|
}
|
|
132
|
+
startTypewriter(text);
|
|
133
|
+
});
|
|
134
|
+
|
|
161
135
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
136
|
+
const hasChoices = computed(() => choices.length > 0);
|
|
137
|
+
const showIndicator = computed(() => !hasChoices() && !isTyping());
|
|
138
|
+
const nav = createTabindexNavigator(selectedItem, { count: () => choices.length }, 'wrap');
|
|
139
|
+
|
|
140
|
+
function selectChoice(index) {
|
|
141
|
+
return function() {
|
|
142
|
+
selectedItem.set(index);
|
|
143
|
+
onSelect(index);
|
|
166
144
|
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
function _onFinish(value) {
|
|
148
|
+
if (onFinish) onFinish(value);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const onSelect = (index) => {
|
|
152
|
+
_onFinish(index);
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
const controls = signal({
|
|
156
|
+
up: {
|
|
157
|
+
repeat: true,
|
|
158
|
+
bind: keyboardControls.up,
|
|
159
|
+
throttle: 150,
|
|
160
|
+
keyDown() {
|
|
161
|
+
if (!hasChoices()) return;
|
|
162
|
+
nav.next(-1);
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
down: {
|
|
166
|
+
repeat: true,
|
|
167
|
+
bind: keyboardControls.down,
|
|
168
|
+
throttle: 150,
|
|
169
|
+
keyDown() {
|
|
170
|
+
if (!hasChoices()) return;
|
|
171
|
+
nav.next(1);
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
action: {
|
|
175
|
+
bind: keyboardControls.action,
|
|
176
|
+
keyDown() {
|
|
177
|
+
if (isTyping()) {
|
|
178
|
+
finishTyping();
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
if (!hasChoices()) return;
|
|
182
|
+
onSelect(selectedItem());
|
|
172
183
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
isTextCompleted.set(false);
|
|
177
|
-
if (isFinished && onFinish) {
|
|
178
|
-
onFinish();
|
|
179
|
-
}
|
|
184
|
+
},
|
|
185
|
+
gamepad: {
|
|
186
|
+
enabled: true
|
|
180
187
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
const dialogControls = signal({
|
|
191
|
+
action: {
|
|
192
|
+
bind: keyboardControls.action,
|
|
193
|
+
keyDown() {
|
|
194
|
+
if (isTyping()) {
|
|
195
|
+
finishTyping();
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
if (hasChoices()) return;
|
|
199
|
+
_onFinish();
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
})
|
|
203
|
+
|
|
204
|
+
const faceSheet = (faceValue) => {
|
|
205
|
+
return {
|
|
206
|
+
definition: engine.getSpriteSheet(faceValue.id),
|
|
207
|
+
playing: faceValue.expression || "default",
|
|
208
|
+
};
|
|
192
209
|
}
|
|
193
|
-
|
|
194
|
-
|
|
210
|
+
|
|
211
|
+
mount((element) => {
|
|
212
|
+
return () => {
|
|
213
|
+
isDestroyed = true;
|
|
214
|
+
// Wait destroy is finished before start processing input
|
|
215
|
+
delay(() => {
|
|
216
|
+
engine.stopProcessingInput = false;
|
|
217
|
+
})
|
|
218
|
+
}
|
|
219
|
+
})
|
|
220
|
+
</script>
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
<DOMContainer width="100%" height="100%">
|
|
2
|
+
<div class="rpg-ui-gameover-screen rpg-anim-fade-in">
|
|
3
|
+
<div class="rpg-ui-gameover-splatter rpg-ui-gameover-splatter-left"></div>
|
|
4
|
+
<div class="rpg-ui-gameover-splatter rpg-ui-gameover-splatter-right"></div>
|
|
5
|
+
<div class="rpg-ui-gameover-splatter rpg-ui-gameover-splatter-center"></div>
|
|
6
|
+
<div class="rpg-ui-gameover-header rpg-anim-shake">
|
|
7
|
+
<div class="rpg-ui-gameover-title">{titleText()}</div>
|
|
8
|
+
@if (subtitleText()) {
|
|
9
|
+
<div class="rpg-ui-gameover-subtitle">{subtitleText()}</div>
|
|
10
|
+
}
|
|
11
|
+
</div>
|
|
12
|
+
<Navigation tabindex={selectedEntry} controls={controls}>
|
|
13
|
+
<div class="rpg-ui-menu rpg-ui-gameover-menu rpg-anim-slide-up">
|
|
14
|
+
@for ((entry,index) of entryList()) {
|
|
15
|
+
<div
|
|
16
|
+
class="rpg-ui-menu-item"
|
|
17
|
+
class={{disabled: isEntryDisabled(entry)}}
|
|
18
|
+
data-selected={selectedEntry() === index ? "true" : "false"}
|
|
19
|
+
tabindex={index}
|
|
20
|
+
click={selectEntry(index)}
|
|
21
|
+
>{entry.label}</div>
|
|
22
|
+
}
|
|
23
|
+
</div>
|
|
24
|
+
</Navigation>
|
|
25
|
+
</div>
|
|
26
|
+
</DOMContainer>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
import { signal, computed, effect } from "canvasengine";
|
|
30
|
+
import { PrebuiltGui } from "@rpgjs/common";
|
|
31
|
+
import { inject } from "../../core/inject";
|
|
32
|
+
import { RpgClientEngine } from "../../RpgClientEngine";
|
|
33
|
+
import { RpgGui } from "../../Gui/Gui";
|
|
34
|
+
|
|
35
|
+
const engine = inject(RpgClientEngine);
|
|
36
|
+
const guiService = inject(RpgGui);
|
|
37
|
+
const keyboardControls = engine.globalConfig.keyboardControls;
|
|
38
|
+
|
|
39
|
+
const { entries, title, subtitle, saveLoad, localActions, onInteraction } = defineProps({
|
|
40
|
+
entries: {
|
|
41
|
+
default: () => []
|
|
42
|
+
},
|
|
43
|
+
saveLoad: {
|
|
44
|
+
default: () => ({})
|
|
45
|
+
},
|
|
46
|
+
localActions: {
|
|
47
|
+
default: false
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const defaultEntries = [
|
|
52
|
+
{ id: "title", label: "Title Screen" },
|
|
53
|
+
{ id: "load", label: "Load Game" }
|
|
54
|
+
];
|
|
55
|
+
|
|
56
|
+
const resolveProp = (value) => typeof value === "function" ? value() : value;
|
|
57
|
+
const titleText = computed(() => resolveProp(title) || "Game Over");
|
|
58
|
+
const subtitleText = computed(() => resolveProp(subtitle) || "");
|
|
59
|
+
const localActionsEnabled = computed(() => resolveProp(localActions) === true);
|
|
60
|
+
|
|
61
|
+
const entryList = computed(() => {
|
|
62
|
+
const list = resolveProp(entries);
|
|
63
|
+
if (Array.isArray(list) && list.length) return list;
|
|
64
|
+
return defaultEntries;
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
const isEntryDisabled = (entry) => {
|
|
68
|
+
if (!entry) return true;
|
|
69
|
+
if (entry.disabled) return true;
|
|
70
|
+
if (entry.enabled === false) return true;
|
|
71
|
+
return false;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const selectedEntry = signal(0);
|
|
75
|
+
const selectableIndexes = computed(() => {
|
|
76
|
+
const list = entryList();
|
|
77
|
+
return list
|
|
78
|
+
.map((entry, index) => (isEntryDisabled(entry) ? null : index))
|
|
79
|
+
.filter((value) => value !== null);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
effect(() => {
|
|
83
|
+
const available = selectableIndexes();
|
|
84
|
+
if (!available.length) return;
|
|
85
|
+
const current = selectedEntry();
|
|
86
|
+
if (!available.includes(current)) {
|
|
87
|
+
selectedEntry.set(available[0]);
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
const moveSelection = (delta) => {
|
|
92
|
+
const available = selectableIndexes();
|
|
93
|
+
if (!available.length) return;
|
|
94
|
+
const current = selectedEntry();
|
|
95
|
+
const currentIndex = Math.max(0, available.indexOf(current));
|
|
96
|
+
const nextIndex = (currentIndex + delta + available.length) % available.length;
|
|
97
|
+
selectedEntry.set(available[nextIndex]);
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const triggerSelect = (index) => {
|
|
101
|
+
const list = entryList();
|
|
102
|
+
const entry = list[index];
|
|
103
|
+
if (!entry || isEntryDisabled(entry)) return;
|
|
104
|
+
if (localActionsEnabled()) {
|
|
105
|
+
if (entry.id === "title") {
|
|
106
|
+
guiService.hide(PrebuiltGui.Gameover);
|
|
107
|
+
guiService.display(PrebuiltGui.TitleScreen);
|
|
108
|
+
}
|
|
109
|
+
if (entry.id === "load") {
|
|
110
|
+
const config = resolveProp(saveLoad) || {};
|
|
111
|
+
const slots = Array.isArray(config.slots) ? config.slots : [null, null, null];
|
|
112
|
+
guiService.display(PrebuiltGui.Save, {
|
|
113
|
+
...config,
|
|
114
|
+
mode: config.mode || "load",
|
|
115
|
+
slots
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
if (onInteraction) {
|
|
120
|
+
onInteraction("select", { id: entry.id, index, entry });
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
function selectEntry(index) {
|
|
125
|
+
return function() {
|
|
126
|
+
selectedEntry.set(index);
|
|
127
|
+
triggerSelect(index);
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
const controls = signal({
|
|
132
|
+
up: {
|
|
133
|
+
repeat: true,
|
|
134
|
+
bind: keyboardControls.up,
|
|
135
|
+
throttle: 150,
|
|
136
|
+
keyDown() {
|
|
137
|
+
moveSelection(-1);
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
down: {
|
|
141
|
+
repeat: true,
|
|
142
|
+
bind: keyboardControls.down,
|
|
143
|
+
throttle: 150,
|
|
144
|
+
keyDown() {
|
|
145
|
+
moveSelection(1);
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
action: {
|
|
149
|
+
bind: keyboardControls.action,
|
|
150
|
+
keyDown() {
|
|
151
|
+
triggerSelect(selectedEntry());
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
gamepad: {
|
|
155
|
+
enabled: true
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
</script>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<DOMContainer>
|
|
2
|
+
<div class="rpg-hud">
|
|
3
|
+
<div class="rpg-avatar">
|
|
4
|
+
@if (hasFace()) {
|
|
5
|
+
<div class="rpg-avatar-face">
|
|
6
|
+
<DOMSprite
|
|
7
|
+
sheet={faceSheet(face())}
|
|
8
|
+
width={64}
|
|
9
|
+
height={64}
|
|
10
|
+
objectFit="contain"
|
|
11
|
+
/>
|
|
12
|
+
</div>
|
|
13
|
+
}
|
|
14
|
+
<div class="rpg-avatar-level">{{ level() }}</div>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="rpg-status-bars">
|
|
17
|
+
<div class="rpg-bar-container">
|
|
18
|
+
<span class="rpg-bar-text">HP {{ hp() }}/{{ hpMax() }}</span>
|
|
19
|
+
<div class="rpg-bar-fill health" style={{width: percentHp}}></div>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="rpg-bar-container">
|
|
22
|
+
<span class="rpg-bar-text">SP {{ sp() }}/{{ spMax() }}</span>
|
|
23
|
+
<div class="rpg-bar-fill mana" style={{width: percentSp}}></div>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</DOMContainer>
|
|
28
|
+
|
|
29
|
+
<script>
|
|
30
|
+
import { inject } from "../../../core/inject";
|
|
31
|
+
import { RpgClientEngine } from "../../../RpgClientEngine";
|
|
32
|
+
import { computed } from "canvasengine";
|
|
33
|
+
import { getEntityProp } from "../../../utils/getEntityProp";
|
|
34
|
+
|
|
35
|
+
const engine = inject(RpgClientEngine)
|
|
36
|
+
const currentPlayer = engine.scene.currentPlayer
|
|
37
|
+
const { data } = defineProps();
|
|
38
|
+
const { faceset } = data();
|
|
39
|
+
|
|
40
|
+
const resolveProp = (value) => typeof value === "function" ? value() : value;
|
|
41
|
+
const face = computed(() => resolveProp(data().faceset));
|
|
42
|
+
|
|
43
|
+
const hasFace = computed(() => {
|
|
44
|
+
const value = face();
|
|
45
|
+
return !!(value && value.id);
|
|
46
|
+
});
|
|
47
|
+
const faceSheet = (faceValue) => ({
|
|
48
|
+
definition: engine.getSpriteSheet(faceValue.id),
|
|
49
|
+
playing: faceValue.expression || "default",
|
|
50
|
+
});
|
|
51
|
+
const hp = getEntityProp(currentPlayer, "hp")
|
|
52
|
+
const hpMax = getEntityProp(currentPlayer, "params.maxHp")
|
|
53
|
+
const percentHp = computed(() => (hp() / hpMax() * 100) + '%')
|
|
54
|
+
|
|
55
|
+
const sp = getEntityProp(currentPlayer, "sp")
|
|
56
|
+
const spMax = getEntityProp(currentPlayer, "params.maxSp")
|
|
57
|
+
const percentSp = computed(() => (sp() / spMax() * 100) + '%')
|
|
58
|
+
|
|
59
|
+
const level = getEntityProp(currentPlayer, "level")
|
|
60
|
+
</script>
|
|
61
|
+
|
|
@@ -1,5 +1,31 @@
|
|
|
1
|
-
import
|
|
1
|
+
import DialogboxComponent from "./dialogbox/index.ce";
|
|
2
|
+
import BoxComponent from "./box.ce";
|
|
3
|
+
import ShopComponent from "./shop/shop.ce";
|
|
4
|
+
import HudComponent from "./hud/hud.ce";
|
|
5
|
+
import SaveLoadComponent from "./save-load.ce";
|
|
6
|
+
import MainMenuComponent from "./menu/main-menu.ce";
|
|
7
|
+
import ItemsMenuComponent from "./menu/items-menu.ce";
|
|
8
|
+
import SkillsMenuComponent from "./menu/skills-menu.ce";
|
|
9
|
+
import EquipMenuComponent from "./menu/equip-menu.ce";
|
|
10
|
+
import OptionsMenuComponent from "./menu/options-menu.ce";
|
|
11
|
+
import ExitMenuComponent from "./menu/exit-menu.ce";
|
|
12
|
+
import NotificationComponent from "./notification/notification.ce";
|
|
13
|
+
import TitleScreenComponent from "./title-screen.ce";
|
|
14
|
+
import GameoverComponent from "./gameover.ce";
|
|
2
15
|
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
16
|
+
export {
|
|
17
|
+
DialogboxComponent,
|
|
18
|
+
BoxComponent,
|
|
19
|
+
ShopComponent,
|
|
20
|
+
HudComponent,
|
|
21
|
+
SaveLoadComponent,
|
|
22
|
+
MainMenuComponent,
|
|
23
|
+
ItemsMenuComponent,
|
|
24
|
+
SkillsMenuComponent,
|
|
25
|
+
EquipMenuComponent,
|
|
26
|
+
OptionsMenuComponent,
|
|
27
|
+
ExitMenuComponent,
|
|
28
|
+
NotificationComponent,
|
|
29
|
+
TitleScreenComponent,
|
|
30
|
+
GameoverComponent
|
|
31
|
+
}
|