narrat 2.3.3 → 2.4.0
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/components/debug/debug-menu.vue.d.ts +1 -0
- package/dist/components/transitions/NarratTransition.vue.d.ts +1 -5
- package/dist/narrat.es.js +9317 -9157
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +92 -91
- package/dist/narrat.umd.js.map +1 -1
- package/dist/stores/main-store.d.ts +110 -6
- package/dist/stores/screens-store.d.ts +9 -11
- package/dist/stores/sprites-store.d.ts +46 -0
- package/dist/style.css +1 -1
- package/dist/types/game-save.d.ts +2 -0
- package/dist/utils/error-handling.d.ts +1 -0
- package/dist/utils/images-loader.d.ts +4 -3
- package/dist/utils/transition.d.ts +6 -0
- package/dist/vm/commands/screen-commands.d.ts +3 -0
- package/dist/vm/commands/sprite-commands.d.ts +9 -0
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ export declare class MainStoreListener extends TypedEmitter<MainEvents> {
|
|
|
10
10
|
}
|
|
11
11
|
export interface ErrorState {
|
|
12
12
|
text: string;
|
|
13
|
+
type: 'error' | 'warning' | 'info';
|
|
13
14
|
}
|
|
14
15
|
interface MainState {
|
|
15
16
|
ready: boolean;
|
|
@@ -52,6 +53,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
52
53
|
playing: boolean;
|
|
53
54
|
errors: {
|
|
54
55
|
text: string;
|
|
56
|
+
type: 'error' | 'warning' | 'info';
|
|
55
57
|
}[];
|
|
56
58
|
playTime: {
|
|
57
59
|
start: number;
|
|
@@ -94,7 +96,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
94
96
|
skills: import("./skills").SkillsState;
|
|
95
97
|
};
|
|
96
98
|
screen: {
|
|
97
|
-
layers: string[];
|
|
99
|
+
layers: (string | null)[];
|
|
98
100
|
buttons: import("./screens-store").ButtonsState;
|
|
99
101
|
};
|
|
100
102
|
main: {
|
|
@@ -151,6 +153,24 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
151
153
|
id: string;
|
|
152
154
|
createdCounter: number;
|
|
153
155
|
};
|
|
156
|
+
sprites: {
|
|
157
|
+
sprites: {
|
|
158
|
+
id: string;
|
|
159
|
+
x: number;
|
|
160
|
+
y: number;
|
|
161
|
+
anchor: {
|
|
162
|
+
x: number;
|
|
163
|
+
y: number;
|
|
164
|
+
};
|
|
165
|
+
width: number;
|
|
166
|
+
height: number;
|
|
167
|
+
image: string;
|
|
168
|
+
opacity: number;
|
|
169
|
+
scale: number;
|
|
170
|
+
layer: number;
|
|
171
|
+
onClick?: string | undefined;
|
|
172
|
+
}[];
|
|
173
|
+
};
|
|
154
174
|
} | undefined;
|
|
155
175
|
listener: {
|
|
156
176
|
listeners: {
|
|
@@ -180,6 +200,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
180
200
|
playerAnswered(choice: number | string): void;
|
|
181
201
|
menuReturn(): void;
|
|
182
202
|
createError(text: string): void;
|
|
203
|
+
createWarning(text: string): void;
|
|
183
204
|
clearErrors(): void;
|
|
184
205
|
setFlowState(flowState: 'menu' | 'playing'): void;
|
|
185
206
|
openModal(modal: string): void;
|
|
@@ -204,6 +225,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
204
225
|
playing: boolean;
|
|
205
226
|
errors: {
|
|
206
227
|
text: string;
|
|
228
|
+
type: 'error' | 'warning' | 'info';
|
|
207
229
|
}[];
|
|
208
230
|
playTime: {
|
|
209
231
|
start: number;
|
|
@@ -246,7 +268,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
246
268
|
skills: import("./skills").SkillsState;
|
|
247
269
|
};
|
|
248
270
|
screen: {
|
|
249
|
-
layers: string[];
|
|
271
|
+
layers: (string | null)[];
|
|
250
272
|
buttons: import("./screens-store").ButtonsState;
|
|
251
273
|
};
|
|
252
274
|
main: {
|
|
@@ -303,6 +325,24 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
303
325
|
id: string;
|
|
304
326
|
createdCounter: number;
|
|
305
327
|
};
|
|
328
|
+
sprites: {
|
|
329
|
+
sprites: {
|
|
330
|
+
id: string;
|
|
331
|
+
x: number;
|
|
332
|
+
y: number;
|
|
333
|
+
anchor: {
|
|
334
|
+
x: number;
|
|
335
|
+
y: number;
|
|
336
|
+
};
|
|
337
|
+
width: number;
|
|
338
|
+
height: number;
|
|
339
|
+
image: string;
|
|
340
|
+
opacity: number;
|
|
341
|
+
scale: number;
|
|
342
|
+
layer: number;
|
|
343
|
+
onClick?: string | undefined;
|
|
344
|
+
}[];
|
|
345
|
+
};
|
|
306
346
|
} | undefined;
|
|
307
347
|
listener: {
|
|
308
348
|
listeners: {
|
|
@@ -320,6 +360,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
320
360
|
playing: boolean;
|
|
321
361
|
errors: {
|
|
322
362
|
text: string;
|
|
363
|
+
type: 'error' | 'warning' | 'info';
|
|
323
364
|
}[];
|
|
324
365
|
playTime: {
|
|
325
366
|
start: number;
|
|
@@ -362,7 +403,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
362
403
|
skills: import("./skills").SkillsState;
|
|
363
404
|
};
|
|
364
405
|
screen: {
|
|
365
|
-
layers: string[];
|
|
406
|
+
layers: (string | null)[];
|
|
366
407
|
buttons: import("./screens-store").ButtonsState;
|
|
367
408
|
};
|
|
368
409
|
main: {
|
|
@@ -419,6 +460,24 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
419
460
|
id: string;
|
|
420
461
|
createdCounter: number;
|
|
421
462
|
};
|
|
463
|
+
sprites: {
|
|
464
|
+
sprites: {
|
|
465
|
+
id: string;
|
|
466
|
+
x: number;
|
|
467
|
+
y: number;
|
|
468
|
+
anchor: {
|
|
469
|
+
x: number;
|
|
470
|
+
y: number;
|
|
471
|
+
};
|
|
472
|
+
width: number;
|
|
473
|
+
height: number;
|
|
474
|
+
image: string;
|
|
475
|
+
opacity: number;
|
|
476
|
+
scale: number;
|
|
477
|
+
layer: number;
|
|
478
|
+
onClick?: string | undefined;
|
|
479
|
+
}[];
|
|
480
|
+
};
|
|
422
481
|
} | undefined;
|
|
423
482
|
listener: {
|
|
424
483
|
listeners: {
|
|
@@ -437,6 +496,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
437
496
|
playing: boolean;
|
|
438
497
|
errors: {
|
|
439
498
|
text: string;
|
|
499
|
+
type: 'error' | 'warning' | 'info';
|
|
440
500
|
}[];
|
|
441
501
|
playTime: {
|
|
442
502
|
start: number;
|
|
@@ -479,7 +539,7 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
479
539
|
skills: import("./skills").SkillsState;
|
|
480
540
|
};
|
|
481
541
|
screen: {
|
|
482
|
-
layers: string[];
|
|
542
|
+
layers: (string | null)[];
|
|
483
543
|
buttons: import("./screens-store").ButtonsState;
|
|
484
544
|
};
|
|
485
545
|
main: {
|
|
@@ -536,6 +596,24 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
536
596
|
id: string;
|
|
537
597
|
createdCounter: number;
|
|
538
598
|
};
|
|
599
|
+
sprites: {
|
|
600
|
+
sprites: {
|
|
601
|
+
id: string;
|
|
602
|
+
x: number;
|
|
603
|
+
y: number;
|
|
604
|
+
anchor: {
|
|
605
|
+
x: number;
|
|
606
|
+
y: number;
|
|
607
|
+
};
|
|
608
|
+
width: number;
|
|
609
|
+
height: number;
|
|
610
|
+
image: string;
|
|
611
|
+
opacity: number;
|
|
612
|
+
scale: number;
|
|
613
|
+
layer: number;
|
|
614
|
+
onClick?: string | undefined;
|
|
615
|
+
}[];
|
|
616
|
+
};
|
|
539
617
|
} | undefined;
|
|
540
618
|
listener: {
|
|
541
619
|
listeners: {
|
|
@@ -549,11 +627,13 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
549
627
|
};
|
|
550
628
|
} & import("pinia").PiniaCustomStateProperties<MainState>): boolean;
|
|
551
629
|
}> & import("pinia").PiniaCustomProperties<string, import("pinia").StateTree, import("pinia")._GettersTree<import("pinia").StateTree>, import("pinia")._ActionsTree>;
|
|
552
|
-
screens: import("pinia").Store<"screens", import("./screens-store").ScreenState, {
|
|
630
|
+
screens: import("pinia").Store<"screens", import("./screens-store").ScreenState, {
|
|
631
|
+
nonEmptyLayers(state: import("./screens-store").ScreenState): import("./screens-store").FullLayerState[];
|
|
632
|
+
}, {
|
|
553
633
|
setScreen(screen: string, layer: number, transition?: import("../utils/transition").AddTransition | undefined): Promise<void>;
|
|
554
634
|
finishTransition(layer: number): void;
|
|
555
635
|
transitionScreen(screen: string, transition: import("../utils/transition").AddTransition, layer?: number | undefined): Promise<void>;
|
|
556
|
-
emptyLayer(layer: number): void
|
|
636
|
+
emptyLayer(layer: number, transition?: import("../utils/transition").AddTransition | undefined): Promise<void>;
|
|
557
637
|
setButtons(config: import("../config").Config): void;
|
|
558
638
|
changeButton(button: string, newValue: import("./screens-store").ButtonStateValue): void;
|
|
559
639
|
generateSaveData(): import("./screens-store").ScreenSave;
|
|
@@ -807,6 +887,30 @@ export declare const useMain: import("pinia").StoreDefinition<"main", MainState,
|
|
|
807
887
|
generateSaveData(): import("./quest-log").QuestLogState;
|
|
808
888
|
loadSaveData(data: import("./quest-log").QuestLogState): void;
|
|
809
889
|
}>;
|
|
890
|
+
sprites: import("pinia").Store<"sprites", import("./sprites-store").SpriteStoreState, {}, {
|
|
891
|
+
createSprite(image: string, x: number, y: number): import("./sprites-store").SpriteState;
|
|
892
|
+
getSprite(id: string): {
|
|
893
|
+
id: string;
|
|
894
|
+
x: number;
|
|
895
|
+
y: number;
|
|
896
|
+
anchor: {
|
|
897
|
+
x: number;
|
|
898
|
+
y: number;
|
|
899
|
+
};
|
|
900
|
+
width: number;
|
|
901
|
+
height: number;
|
|
902
|
+
image: string;
|
|
903
|
+
opacity: number;
|
|
904
|
+
scale: number;
|
|
905
|
+
layer: number;
|
|
906
|
+
onClick?: string | undefined;
|
|
907
|
+
} | undefined;
|
|
908
|
+
deleteSprite(sprite: import("./sprites-store").SpriteState): void;
|
|
909
|
+
clickSprite(sprite: import("./sprites-store").SpriteState): void;
|
|
910
|
+
generateSaveData(): import("./sprites-store").SpriteStoreSave;
|
|
911
|
+
loadSaveData(data: import("./sprites-store").SpriteStoreSave): void;
|
|
912
|
+
reset(): void;
|
|
913
|
+
}>;
|
|
810
914
|
};
|
|
811
915
|
overrideStates(override: any): void;
|
|
812
916
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AddTransition } from '../utils/transition';
|
|
1
|
+
import { AddTransition, TransitionState } from '../utils/transition';
|
|
2
2
|
import { Config } from '../config';
|
|
3
3
|
export declare type ButtonStateValue = boolean | 'hidden' | 'greyed';
|
|
4
4
|
export interface ButtonsState {
|
|
@@ -6,28 +6,26 @@ export interface ButtonsState {
|
|
|
6
6
|
state: ButtonStateValue;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
10
|
-
|
|
11
|
-
duration: number;
|
|
12
|
-
resolve: () => void;
|
|
13
|
-
}
|
|
14
|
-
export interface LayerState {
|
|
15
|
-
screen: string;
|
|
9
|
+
export interface FullLayerState {
|
|
10
|
+
screen: string | null;
|
|
16
11
|
transition?: TransitionState;
|
|
17
12
|
}
|
|
13
|
+
export declare type LayerState = FullLayerState | undefined;
|
|
18
14
|
export interface ScreenState {
|
|
19
15
|
layers: LayerState[];
|
|
20
16
|
buttons: ButtonsState;
|
|
21
17
|
}
|
|
22
18
|
export declare type ScreenSave = {
|
|
23
|
-
layers: string
|
|
19
|
+
layers: Array<string | null>;
|
|
24
20
|
buttons: ButtonsState;
|
|
25
21
|
};
|
|
26
|
-
export declare const useScreens: import("pinia").StoreDefinition<"screens", ScreenState, {
|
|
22
|
+
export declare const useScreens: import("pinia").StoreDefinition<"screens", ScreenState, {
|
|
23
|
+
nonEmptyLayers(state: ScreenState): FullLayerState[];
|
|
24
|
+
}, {
|
|
27
25
|
setScreen(screen: string, layer: number, transition?: AddTransition): Promise<void>;
|
|
28
26
|
finishTransition(layer: number): void;
|
|
29
27
|
transitionScreen(screen: string, transition: AddTransition, layer?: number): Promise<void>;
|
|
30
|
-
emptyLayer(layer: number): void
|
|
28
|
+
emptyLayer(layer: number, transition?: AddTransition): Promise<void>;
|
|
31
29
|
setButtons(config: Config): void;
|
|
32
30
|
changeButton(button: string, newValue: ButtonStateValue): void;
|
|
33
31
|
generateSaveData(): ScreenSave;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface SpriteState {
|
|
2
|
+
id: string;
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
anchor: {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
};
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
image: string;
|
|
12
|
+
opacity: number;
|
|
13
|
+
scale: number;
|
|
14
|
+
layer: number;
|
|
15
|
+
onClick?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface SpriteStoreState {
|
|
18
|
+
sprites: SpriteState[];
|
|
19
|
+
}
|
|
20
|
+
export declare type SpriteStoreSave = {
|
|
21
|
+
sprites: SpriteState[];
|
|
22
|
+
};
|
|
23
|
+
export declare const useSprites: import("pinia").StoreDefinition<"sprites", SpriteStoreState, {}, {
|
|
24
|
+
createSprite(image: string, x: number, y: number): SpriteState;
|
|
25
|
+
getSprite(id: string): {
|
|
26
|
+
id: string;
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
anchor: {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
};
|
|
33
|
+
width: number;
|
|
34
|
+
height: number;
|
|
35
|
+
image: string;
|
|
36
|
+
opacity: number;
|
|
37
|
+
scale: number;
|
|
38
|
+
layer: number;
|
|
39
|
+
onClick?: string | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
deleteSprite(sprite: SpriteState): void;
|
|
42
|
+
clickSprite(sprite: SpriteState): void;
|
|
43
|
+
generateSaveData(): SpriteStoreSave;
|
|
44
|
+
loadSaveData(data: SpriteStoreSave): void;
|
|
45
|
+
reset(): void;
|
|
46
|
+
}>;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}*{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}::moz-focus-inner{border-style:none;padding:0}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}body{margin:0;font-family:inherit;line-height:inherit}b{font-weight:bolder}button,input,select{font-family:inherit;font-size:100%;line-height:1.15;margin:0;padding:0;line-height:inherit;color:inherit}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button{background-color:transparent;background-image:none}button,[role=button]{cursor:pointer}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}hr{height:0;color:inherit;border-top-width:1px}h3,h2,hr,p,h1{margin:0}h3,h2,h1{font-size:inherit;font-weight:inherit}img{border-style:solid;display:block;vertical-align:middle;max-width:100%;height:auto}input::placeholder{opacity:1;color:#9ca3af}input::webkit-input-placeholder{opacity:1;color:#9ca3af}input::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder{opacity:1;color:#9ca3af}input::-ms-input-placeholder{opacity:1;color:#9ca3af}table{text-indent:0;border-color:inherit;border-collapse:collapse}ul{list-style:none;margin:0;padding:0}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgba(31,41,55,var(--tw-bg-opacity))}.block{display:block}.inline{display:inline}.flex{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.grid{display:-ms-grid;display:grid}.hidden{display:none}.flex-row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;-webkit-flex-direction:row;flex-direction:row}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.items-center{-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.list-disc{list-style-type:disc}.static{position:static}.absolute{position:absolute}.resize{resize:both}.table-auto{table-layout:auto}.line-through{-webkit-text-decoration-line:line-through;text-decoration-line:line-through}.indent{text-indent:1.5rem}.w-full{width:100%}.gap-4{grid-gap:1rem;gap:1rem}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.transform{--tw-translate-x: 0;--tw-translate-y: 0;--tw-translate-z: 0;--tw-rotate: 0;--tw-rotate-x: 0;--tw-rotate-y: 0;--tw-rotate-z: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-scale-z: 1;-webkit-transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotateZ(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z));-ms-transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotateZ(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z));transform:translate(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotate(var(--tw-rotate-z)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z))}.\<transition,.transition,.transition\.duration,.transition\.delay{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,filter,backdrop-filter;-o-transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,-webkit-box-shadow,transform,-webkit-transform,filter,backdrop-filter;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);-o-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.15s;-o-transition-duration:.15s;transition-duration:.15s}.duration{-webkit-transition-duration:.15s;-o-transition-duration:.15s;transition-duration:.15s}:root{--font-family: "Helvetica", sans-serif, "Arial", "sans-serif";--bg-color: #131720;--text-color: #d9e1f2;--primary: hsl(255, 30%, 55%);--focus: hsl(210, 90%, 50%);--secondary: #42b983;--border-color: hsla(0, 0%, 100%, .2);--light-1: hsl(210, 30%, 40%);--light-2: hsl(255, 30%, 50%);--light-background: linear-gradient(to right, var(--light-1), var(--light-2));--shadow-1: hsla(236, 50%, 50%, .3);--shadow-2: hsla(236, 50%, 50%, .4);--hud-background: rgba(0, 0, 0, .4);--hud-text-color: var(--text-color);--notifications-bg: darkslateblue;--skills-text-background: rgba(0, 0, 0, .5);--skills-text-color: var(--text-color);--skills-level-background: rgba(0, 0, 0, .5);--skills-level-color: orange;--skills-xp-bar-height: 40px;--skill-check-name-color: orange;--skill-check-difficulty: orange;--skill-check-success: green;--skill-check-failed: red;--skill-check-color: orange;--dialog-choice-color: orange;--dialog-choice-hover-color: var(--text-color);--inventory-text-background: rgba(0, 0, 0, .5);--inventory-text-color: var(--text-color);--inventory-amount-background: rgba(0, 0, 0, .5);--inventory-amount-color: orange;--quest-title-color: yellow;--completed-quest-title-color: grey;--objective-in-progress-color: white;--objective-completed-color: grey;--loading-bar-inner-bg: var(--light-background);--loading-bar-outer-bg: var(--bg-color)}body{font-family:var(--font-family);padding:0;margin:0;font-family:Arial,sans-serif;background-color:#000}*{font-family:var(--font-family);user-select:none}.list-item{display:inline-block;margin-right:10px}.list-enter-active,.list-leave-active{transition:all .3s ease}.think-command{color:#0ff}#app{background-size:cover}.list-enter-from,.list-leave-to{opacity:0;transform:translate(300px)}.notification-item{display:inline-block;margin-right:10px}.notification-enter-active,.notification-leave-active{transition:all .3s ease}.notification-enter-from,.notification-leave-to{opacity:0;transform:translateY(-300px)}.fade-enter-active,.fade-leave-active{transition:opacity .3s ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-in-enter-active{transition:opacity .1s ease}.fade-in-enter-from{opacity:0}.select{background:var(--light-background);padding:10px}.option{background-color:var(--light-2);padding:5px;color:var(--text-color)}.button{background:var(--light-background);color:var(--text-color);box-shadow:.4rem .5rem 2.4rem .2rem var(--shadow-1),inset -2px -4px #0006,inset 2px 2px #fff7;border-radius:10px;padding:10px;font-weight:800;font-size:16px;margin:10px;transition:.2s;box-shadow:inset -2px -4px #0006,inset 2px 2px #fff7}.button.large{border-radius:20px}.menu-button{border-radius:5px}.button.main-menu-button{border-radius:20px}.button:focus,.button:hover{transform:translateY(-.2rem);box-shadow:0 0 1rem .2rem var(--shadow-2),inset -2px -4px #0006,inset 2px 2px #fff7}.disabled{user-select:none;pointer-events:none}.button.disabled{box-shadow:unset;color:gray;background:var(--border-color)}.input{background:var(--light-background);color:var(--text-color);box-shadow:.4rem .4rem 2.4rem .2rem var(--shadow-1);border-radius:100px;padding:10px;font-weight:800;font-size:16px;margin:10px;transition:.2s}.input:focus,.input:hover{transform:translateY(-.2rem);box-shadow:0 0 2.4rem .2rem var(--shadow-2)}a{color:pink;text-decoration:underline}th,td{padding:4px;border:1px solid var(--text-color);text-align:center}#game-holder{width:100vw;height:100vh;padding:0;margin:0;top:0;left:0;background-color:#000;display:flex;align-items:center;justify-content:center;min-height:-webkit-fill-available}.title{font-size:30px;font-weight:700;text-align:center}.container{padding:20px}h1,h2,h3,h4{font-weight:700}h1{font-size:30px}h2{font-size:26px}h3{font-size:24px}hr.solid{border:1px solid var(--text-color);margin-top:30px;margin-bottom:30px}.card-1{box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;transition:all .3s cubic-bezier(.25,.8,.25,1)}.card-1:hover{box-shadow:0 14px 28px #00000040,0 10px 10px #00000038}.card-2{box-shadow:0 3px 6px #00000029,0 3px 6px #0000003b}.card-3{box-shadow:0 10px 20px #00000030,0 6px 6px #0000003b}.card-4{box-shadow:0 14px 28px #00000040,0 10px 10px #00000038}.card-5{box-shadow:0 19px 38px #0000004d,0 15px 12px #00000038}.dialog-choice{transition:.2s}.dialog-choice:hover{transform:scale(1.05);transform-origin:center}.dialog-choice:not(:hover)>.skill-check-name,.passive-skill-check>.skill-check-name{color:var(--skill-check-name-color)}.dialog-choice:not(:hover)>.skill-check-difficulty,.passive-skill-check>.skill-check-difficulty{color:var(--skill-check-difficulty)}.skill-check-difficulty{font-weight:700}.dialog-choice:not(:hover)>.skill-check-success,.passive-skill-check>.skill-check-success{color:var(--skill-check-success)}.dialog-choice:not(:hover)>.skill-check-failed,.passive-skill-check>.skill-check-failed{color:var(--skill-check-failed)}.dialog-choice:not(:hover)>.skill-check,.passive-skill-check.skill-check{color:var(--skill-check-color)}.narrat-canvas{position:absolute;height:100%;top:0;left:0}#touchTrigger{pointer-events:none}.narrat-transition-fade-enter-active,.narrat-transition-fade-leave-active{transition-property:opacity;transition-timing-function:ease;transition-duration:.3s}.narrat-transition-fade-enter-from,.narrat-transition-fade-leave-to{opacity:0}.narrat-transition-slide-right-enter-active,.narrat-transition-slide-right-leave-active{transition-property:transform;transition-timing-function:ease;transition-duration:.3s}.narrat-transition-slide-right-enter-from{transform:translate(-100%)}.narrat-transition-slide-right-leave-to{transform:translate(100%)}.narrat-transition-slide-left-enter-active,.narrat-transition-slide-left-leave-active{transition-property:transform;transition-timing-function:ease;transition-duration:.3s}.narrat-transition-slide-left-enter-from{transform:translate(100%)}.narrat-transition-slide-left-leave-to{transform:translate(-100%)}.narrat-transition-slide-top-enter-active,.narrat-transition-slide-top-leave-active{transition-property:transform;transition-timing-function:ease;transition-duration:.3s}.narrat-transition-slide-top-enter-from{transform:translateY(100%)}.narrat-transition-slide-top-leave-to{transform:translateY(-100%)}.narrat-transition-slide-bottom-enter-active,.narrat-transition-slide-bottom-leave-active{transition-property:transform;transition-timing-function:ease;transition-duration:.3s}.narrat-transition-slide-bottom-enter-from{transform:translateY(-100%)}.narrat-transition-slide-bottom-leave-to{transform:translateY(100%)}.screens-fade-enter-active,.screens-fade-leave-active{transition:opacity .5s ease}.screens-fade-enter-from,.screens-fade-leave-to{opacity:0}.modal-mask{position:absolute;z-index:9998;top:0;left:0;width:100%;height:100%;background-color:#00000080;transition:opacity .3s ease;display:flex;flex-direction:column;flex-shrink:2 2;align-items:center;justify-content:center}.modal-container{min-width:300px;max-width:90vw;max-height:100%;overflow-y:hidden;margin:10px auto;padding:20px 30px;border-radius:5px;transition:all .3s ease;font-family:Helvetica,Arial,sans-serif;background:linear-gradient(to right,hsl(210,30%,20%),hsl(255,30%,25%));display:flex;flex-direction:column}.modal-header{position:relative}.modal-header h3{flex-shrink:0;margin-top:0;color:var(--secondary)}.modal-body{margin:20px 0;overflow-y:auto;flex-shrink:2}.modal-default-button{float:right}.modal-enter,.modal-leave-active{opacity:0}.modal-enter .modal-container,.modal-leave-active .modal-container{-webkit-transform:scale(1.1);transform:scale(1.1)}.close-button{border:1px solid var(--text-color);border-radius:50px;font-size:30px;font-weight:700;position:absolute;right:-20px;top:-10px;width:50px;height:50px}.close-button:hover{background-color:var(--focus)}.debug-menu{z-index:9999}.debug-button{position:fixed;bottom:10px;right:10px;padding:5px}.error-message{color:#ff4500;margin-top:10px;margin-bottom:10px}.error-filename{color:gray;text-decoration:underline}.debug-menu-container{width:100%}.search-result{border:1px solid var(--text-color);padding:10px;font-weight:700;font-size:20px;width:100}.jump-menu-container{width:80%}.debug-info{position:fixed;background-color:#0009;border:1px dotted var(--text-color);top:0;left:0;padding:5px}.variables-viewer{height:100%}.notifications-holder{position:fixed;top:0;right:0;padding:10px;display:flex;flex-direction:column-reverse;align-items:center;pointer-events:none}.notification{margin-top:10px;margin-bottom:10px;border-radius:10px;padding:15px;background:var(--notifications-bg);width:40vh;text-align:center}.save-slot{background:var(--light-background);border:1px dashed white;width:100%;padding:20px}.save-slot:not(:last-child){margin-bottom:20px}.save-name{font-size:1.2rem;font-weight:700;background-color:var(--bg-color);color:var(--text-color)}.save-modal{width:70%}.saves-container{padding:20px}#game-menu{width:100%;height:100%;padding:20px;background-color:#000}#game-title-container{margin-bottom:80px}#game-title-text{text-align:center;font-size:50px}.menu-button{font-size:25px;margin-bottom:10px}#game-header{position:relative;top:100px}.start-menu-buttons-container{width:400px}.save-modal{width:70%}.saves-container{padding:20px}.dialog-picture{position:absolute;width:80px;height:80px;border:2px solid white;border-radius:10px;background-color:gray;z-index:99}.dialog-picture img{width:100%;height:100%}.dialog-title{font-size:20px;font-weight:700}.dialog-text{font-size:16px}.dialog-box{color:var(--text-color);padding:10px 10px 10px 2em;margin-bottom:10px}.dialog-choice{color:var(--dialog-choice-color)}.dialog-choice:hover{color:var(--dialog-choice-hover-color);cursor:pointer}.buttons-container{width:100%;padding:10px;display:flex;justify-content:space-evenly;align-items:stretch;box-sizing:border-box}.interact-button{cursor:pointer;user-select:none;height:50px;color:var(--text-color);border:1px solid black;font-weight:700;font-size:24px;text-align:center;flex-grow:2;display:flex;align-items:center;justify-content:center;box-sizing:border-box}.dialog-container{flex-shrink:2;min-height:100%;width:100%;background-color:(var(--bg-color));box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;overflow-x:hidden}.dialog{overflow-y:auto;overflow-x:hidden;position:relative;-ms-overflow-style:none;scrollbar-width:none;background:var(--bg-color)}.dialog::-webkit-scrollbar{display:none}.dialog *{overflow-anchor:none}.anchor{overflow-anchor:auto;height:1px}.menu-content{text-align:center}.menu-toggle-button{margin:0;padding:2px;border-radius:5px}.menu-toggle-button:not(:last-child){margin-right:10px}.menu-modal{width:500px}.viewport-layer{background-size:cover;background-repeat:no-repeat;background-position:center;position:absolute;left:0;top:0}.viewport-button{position:absolute;display:flex;justify-content:center;align-items:center;background:var(--light-background);color:#fff;font-size:30px;font-weight:700}.viewport-button.interactable{cursor:pointer;animation:pulse .8s infinite;animation-timing-function:linear}.viewport-button.disabled{pointer-events:none;user-select:none}.viewport-button.greyed{opacity:.3}.viewport-button.hidden{opacity:0;display:none}.transition-holder{position:absolute;top:0;left:0;width:100%;height:100%}.viewport{position:relative}.layer-container{position:absolute;top:0;left:0;width:100%;height:100%}.hud{position:absolute;right:0;top:0;display:flex;flex-direction:row-reverse;z-index:3}.hud-stat{border:1px dotted white;background-color:var(--hud-background);color:var(--hud-text-color);padding:5px}.hud-icon{display:inline-block;height:1em}.hud-text{margin-left:5px}.game{position:absolute;background-color:var(--bg-color);display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;height:100%;box-sizing:border-box;overflow:hidden}.menu-toggle{position:fixed;bottom:0px;right:15%;z-index:2}#loading-bar{position:relative;width:60vw;height:50px;border-radius:50px;background:var(--loading-bar-outer-bg);border:3px solid white}#inner-loading-bar{height:100%;border-radius:50px 0 0 50px;background:var(--loading-bar-inner-bg)}#loading-text{z-index:99999;display:flex;align-items:center;justify-content:space-around;position:absolute;width:100%;height:100%;top:0}@keyframes animate-logo{0%{transform:perspective(10000px) rotateY(0) rotateX(0) scale(.8)}50%{transform:perspective(10000px) rotateY(180deg) rotateX(-10deg) scale(1)}to{transform:perspective(10000px) rotateY(360deg) rotateX(0) scale(.8)}}#engine-splash-header{position:absolute;width:50%;perspective:300px;transition-property:opacity}#engine-splash-header.invisible{opacity:0}#engine-splash-screen{position:absolute;width:100%;height:100%;background-color:#000}#engine-splash-logo{width:300px;height:300px;margin:50px;transform-style:preserve-3d;animation:animate-logo infinite 10s;animation-timing-function:linear}#game-splash-title{font-size:70px;text-align:center;margin-bottom:40px}#game-splash-screen{width:100%;height:100%;position:absolute;background-color:#000}.splash-start-button{padding:10px 20px;font-size:35px}#app{background-color:var(--bg-color);width:100%;height:100%;position:absolute;display:flex;flex-direction:row;align-items:center;justify-content:center;color:var(--text-color);box-sizing:border-box;overflow:hidden;transform-origin:center center}.interact-button{height:50px;border:1px solid black;font-weight:700;font-size:20px;text-align:center;flex-grow:2;display:flex;align-items:center;justify-content:center;box-sizing:border-box}.interact-button:not(:last-child){margin-right:10px}.volume-label{font-size:20px;font-weight:700;width:180px;text-align:right;margin-right:20px}.volume-controls{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--light-background);border:1px dashed white;padding:20px;margin:20px 0}.volume-control{width:100%;font-size:25px;display:flex;align-items:center;justify-content:space-between;margin:0 20px}.volume-slider{flex-grow:2;background-color:#00f}.quit-button{margin:20px;text-align:center}.main-menu-modal{width:60%}.inventory-modal{width:800px;min-height:50%}.inventory-container{display:grid;grid-auto-rows:auto;grid-template-columns:repeat(3,1fr);grid-gap:20px 20px}.item-display{width:200px;height:300px;position:relative;background-repeat:no-repeat;background-size:contain}.item-title{position:absolute;bottom:0px;text-align:center;width:100%;color:var(--inventory-text-color);background:var(--inventory-text-background)}.item-amount{position:absolute;top:0;right:0;font-weight:700;font-size:25px;color:var(--inventory-amount-color);width:40px;height:40px;background-color:var(--inventory-amount-background)}.item-description-container{justify-content:space-between;align-items:stretch}.item-left{border:1px dashed white;flex-direction:column;padding:10px;justify-content:center}.item-right{border:1px dashed white;flex-direction:column;flex-grow:2;align-items:baseline;padding:10px}.quests-modal{width:100%;min-height:50%}.quest-header{display:flex;flex-direction:row;align-items:center}.quest-title{font-size:1.5rem;font-weight:700;margin-bottom:.5rem}.quest-completed{color:var(--completed-quest-title-color)}.quest-in-progress{color:var(--quest-title-color)}.quest-state{font-size:1.25rem;font-weight:700;margin-bottom:.5rem}.quest-description{font-size:1.1rem;text-align:justify;font-style:italic;margin-bottom:.5rem}.quest-objectives-container{margin-left:10px}.quest-objective-completed{color:var(--objective-completed-color);text-decoration:line-through}.quest-objective-in-progress{color:var(--objective-in-progress-color)}.quest-objective-description{font-size:1rem;margin-bottom:.5rem}.skills-modal{width:800px}.skills-container{display:grid;grid-auto-rows:auto;grid-template-columns:repeat(3,1fr);grid-gap:20px 20px}.skill-display{width:200px;height:300px;position:relative;background-size:cover}.skill-title{position:absolute;bottom:0px;text-align:center;width:100%;color:var(--skills-text-color);background:var(--skills-text-background)}.skill-level{position:absolute;top:0;right:0;font-weight:700;font-size:25px;color:var(--skills-level-color);width:var(--skills-xp-bar-height);height:var(--skills-xp-bar-height);background-color:var(--skills-level-background)}.skill-description-container{justify-content:space-between;align-items:stretch}.skill-left{flex-direction:column;border:1px dashed white;padding:10px;justify-content:center}.skill-right{border:1px dashed white;flex-direction:column;align-items:baseline;flex-grow:2}.skill-xp-container{position:absolute;top:0;left:0;height:var(--skills-xp-bar-height);width:calc(100% - var(--skills-xp-bar-height));background-color:#00000080}.skill-xp-bar{position:absolute;top:0;left:0;width:50%;height:100%;background-color:#0000fa80}.skill-xp-text{z-index:2}
|
|
1
|
+
*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}*{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}::moz-focus-inner{border-style:none;padding:0}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}body{margin:0;font-family:inherit;line-height:inherit}b{font-weight:bolder}button,input,select{font-family:inherit;font-size:100%;line-height:1.15;margin:0;padding:0;line-height:inherit;color:inherit}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button{background-color:transparent;background-image:none}button,[role=button]{cursor:pointer}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}hr{height:0;color:inherit;border-top-width:1px}h3,h2,hr,p,h1{margin:0}h3,h2,h1{font-size:inherit;font-weight:inherit}img{border-style:solid;display:block;vertical-align:middle;max-width:100%;height:auto}input::placeholder{opacity:1;color:#9ca3af}input::webkit-input-placeholder{opacity:1;color:#9ca3af}input::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder{opacity:1;color:#9ca3af}input::-ms-input-placeholder{opacity:1;color:#9ca3af}table{text-indent:0;border-color:inherit;border-collapse:collapse}ul{list-style:none;margin:0;padding:0}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgba(31,41,55,var(--tw-bg-opacity))}.block{display:block}.inline{display:inline}.flex{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.grid{display:-ms-grid;display:grid}.hidden{display:none}.flex-row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;-webkit-flex-direction:row;flex-direction:row}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.items-center{-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.list-disc{list-style-type:disc}.static{position:static}.absolute{position:absolute}.resize{resize:both}.table-auto{table-layout:auto}.line-through{-webkit-text-decoration-line:line-through;text-decoration-line:line-through}.indent{text-indent:1.5rem}.w-full{width:100%}.gap-4{grid-gap:1rem;gap:1rem}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.transform{--tw-translate-x: 0;--tw-translate-y: 0;--tw-translate-z: 0;--tw-rotate: 0;--tw-rotate-x: 0;--tw-rotate-y: 0;--tw-rotate-z: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-scale-z: 1;-webkit-transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotateZ(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z));-ms-transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotateZ(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z));transform:translate(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotate(var(--tw-rotate-z)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z))}.\<transition,.transition,.transition\.duration,.transition\.delay{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform,filter,backdrop-filter;-o-transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,-webkit-box-shadow,transform,-webkit-transform,filter,backdrop-filter;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);-o-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.15s;-o-transition-duration:.15s;transition-duration:.15s}.duration{-webkit-transition-duration:.15s;-o-transition-duration:.15s;transition-duration:.15s}:root{--font-family: "Helvetica", sans-serif, "Arial", "sans-serif";--bg-color: #131720;--text-color: #d9e1f2;--primary: hsl(255, 30%, 55%);--focus: hsl(210, 90%, 50%);--secondary: #42b983;--border-color: hsla(0, 0%, 100%, .2);--light-1: hsl(210, 30%, 40%);--light-2: hsl(255, 30%, 50%);--light-background: linear-gradient(to right, var(--light-1), var(--light-2));--shadow-1: hsla(236, 50%, 50%, .3);--shadow-2: hsla(236, 50%, 50%, .4);--hud-background: rgba(0, 0, 0, .4);--hud-text-color: var(--text-color);--notifications-bg: darkslateblue;--skills-text-background: rgba(0, 0, 0, .5);--skills-text-color: var(--text-color);--skills-level-background: rgba(0, 0, 0, .5);--skills-level-color: orange;--skills-xp-bar-height: 40px;--skill-check-name-color: orange;--skill-check-difficulty: orange;--skill-check-success: green;--skill-check-failed: red;--skill-check-color: orange;--dialog-choice-color: orange;--dialog-choice-hover-color: var(--text-color);--inventory-text-background: rgba(0, 0, 0, .5);--inventory-text-color: var(--text-color);--inventory-amount-background: rgba(0, 0, 0, .5);--inventory-amount-color: orange;--quest-title-color: yellow;--completed-quest-title-color: grey;--objective-in-progress-color: white;--objective-completed-color: grey;--loading-bar-inner-bg: var(--light-background);--loading-bar-outer-bg: var(--bg-color)}body{font-family:var(--font-family);padding:0;margin:0;font-family:Arial,sans-serif;background-color:#000}*{font-family:var(--font-family);user-select:none}.list-item{display:inline-block;margin-right:10px}.list-enter-active,.list-leave-active{transition:all .3s ease}.think-command{color:#0ff}#app{background-size:cover}.list-enter-from,.list-leave-to{opacity:0;transform:translate(300px)}.notification-item{display:inline-block;margin-right:10px}.notification-enter-active,.notification-leave-active{transition:all .3s ease}.notification-enter-from,.notification-leave-to{opacity:0;transform:translateY(-300px)}.fade-enter-active,.fade-leave-active{transition:opacity .3s ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-in-enter-active{transition:opacity .1s ease}.fade-in-enter-from{opacity:0}.select{background:var(--light-background);padding:10px}.option{background-color:var(--light-2);padding:5px;color:var(--text-color)}.button{background:var(--light-background);color:var(--text-color);box-shadow:.4rem .5rem 2.4rem .2rem var(--shadow-1),inset -2px -4px #0006,inset 2px 2px #fff7;border-radius:10px;padding:10px;font-weight:800;font-size:16px;margin:10px;transition:.2s;box-shadow:inset -2px -4px #0006,inset 2px 2px #fff7}.button.large{border-radius:20px}.menu-button{border-radius:5px}.button.main-menu-button{border-radius:20px}.button:focus,.button:hover{transform:translateY(-.2rem);box-shadow:0 0 1rem .2rem var(--shadow-2),inset -2px -4px #0006,inset 2px 2px #fff7}.disabled{user-select:none;pointer-events:none}.button.disabled{box-shadow:unset;color:gray;background:var(--border-color)}.input{background:var(--light-background);color:var(--text-color);box-shadow:.4rem .4rem 2.4rem .2rem var(--shadow-1);border-radius:100px;padding:10px;font-weight:800;font-size:16px;margin:10px;transition:.2s}.input:focus,.input:hover{transform:translateY(-.2rem);box-shadow:0 0 2.4rem .2rem var(--shadow-2)}a{color:pink;text-decoration:underline}th,td{padding:4px;border:1px solid var(--text-color);text-align:center}#game-holder{width:100vw;height:100vh;padding:0;margin:0;top:0;left:0;background-color:#000;display:flex;align-items:center;justify-content:center;min-height:-webkit-fill-available}.title{font-size:30px;font-weight:700;text-align:center}.container{padding:20px}h1,h2,h3,h4{font-weight:700}h1{font-size:30px}h2{font-size:26px}h3{font-size:24px}hr.solid{border:1px solid var(--text-color);margin-top:30px;margin-bottom:30px}.card-1{box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;transition:all .3s cubic-bezier(.25,.8,.25,1)}.card-1:hover{box-shadow:0 14px 28px #00000040,0 10px 10px #00000038}.card-2{box-shadow:0 3px 6px #00000029,0 3px 6px #0000003b}.card-3{box-shadow:0 10px 20px #00000030,0 6px 6px #0000003b}.card-4{box-shadow:0 14px 28px #00000040,0 10px 10px #00000038}.card-5{box-shadow:0 19px 38px #0000004d,0 15px 12px #00000038}.dialog-choice{transition:.2s}.dialog-choice:hover{transform:scale(1.05);transform-origin:center}.dialog-choice:not(:hover)>.skill-check-name,.passive-skill-check>.skill-check-name{color:var(--skill-check-name-color)}.dialog-choice:not(:hover)>.skill-check-difficulty,.passive-skill-check>.skill-check-difficulty{color:var(--skill-check-difficulty)}.skill-check-difficulty{font-weight:700}.dialog-choice:not(:hover)>.skill-check-success,.passive-skill-check>.skill-check-success{color:var(--skill-check-success)}.dialog-choice:not(:hover)>.skill-check-failed,.passive-skill-check>.skill-check-failed{color:var(--skill-check-failed)}.dialog-choice:not(:hover)>.skill-check,.passive-skill-check.skill-check{color:var(--skill-check-color)}.narrat-canvas{position:absolute;height:100%;top:0;left:0}#touchTrigger{pointer-events:none}.narrat-transition-fade-enter-active,.narrat-transition-fade-leave-active{transition-property:opacity;transition-timing-function:ease;transition-duration:.3s}.narrat-transition-fade-enter-from,.narrat-transition-fade-leave-to{opacity:0}.narrat-transition-slide-right-enter-active,.narrat-transition-slide-right-leave-active{transition-property:transform;transition-timing-function:ease;transition-duration:.3s}.narrat-transition-slide-right-enter-from{transform:translate(-100%)}.narrat-transition-slide-right-leave-to{transform:translate(100%)}.narrat-transition-slide-left-enter-active,.narrat-transition-slide-left-leave-active{transition-property:transform;transition-timing-function:ease;transition-duration:.3s}.narrat-transition-slide-left-enter-from{transform:translate(100%)}.narrat-transition-slide-left-leave-to{transform:translate(-100%)}.narrat-transition-slide-top-enter-active,.narrat-transition-slide-top-leave-active{transition-property:transform;transition-timing-function:ease;transition-duration:.3s}.narrat-transition-slide-top-enter-from{transform:translateY(100%)}.narrat-transition-slide-top-leave-to{transform:translateY(-100%)}.narrat-transition-slide-bottom-enter-active,.narrat-transition-slide-bottom-leave-active{transition-property:transform;transition-timing-function:ease;transition-duration:.3s}.narrat-transition-slide-bottom-enter-from{transform:translateY(-100%)}.narrat-transition-slide-bottom-leave-to{transform:translateY(100%)}.screens-fade-enter-active,.screens-fade-leave-active{transition:opacity .5s ease}.screens-fade-enter-from,.screens-fade-leave-to{opacity:0}.modal-mask{position:absolute;z-index:9998;top:0;left:0;width:100%;height:100%;background-color:#00000080;transition:opacity .3s ease;display:flex;flex-direction:column;flex-shrink:2 2;align-items:center;justify-content:center}.modal-container{min-width:300px;max-width:90vw;max-height:100%;overflow-y:hidden;margin:10px auto;padding:20px 30px;border-radius:5px;transition:all .3s ease;font-family:Helvetica,Arial,sans-serif;background:linear-gradient(to right,hsl(210,30%,20%),hsl(255,30%,25%));display:flex;flex-direction:column}.modal-header{position:relative}.modal-header h3{flex-shrink:0;margin-top:0;color:var(--secondary)}.modal-body{margin:20px 0;overflow-y:auto;flex-shrink:2}.modal-default-button{float:right}.modal-enter,.modal-leave-active{opacity:0}.modal-enter .modal-container,.modal-leave-active .modal-container{-webkit-transform:scale(1.1);transform:scale(1.1)}.close-button{border:1px solid var(--text-color);border-radius:50px;font-size:30px;font-weight:700;position:absolute;right:-20px;top:-10px;width:50px;height:50px}.close-button:hover{background-color:var(--focus)}.debug-menu{z-index:9999}.debug-button{position:fixed;bottom:10px;right:10px;padding:5px}.error-message{margin-top:10px;margin-bottom:10px}.error{color:#ff4500}.warning{color:orange}.error-filename{color:gray;text-decoration:underline}.debug-menu-container{width:100%}.search-result{border:1px solid var(--text-color);padding:10px;font-weight:700;font-size:20px;width:100}.jump-menu-container{width:80%}.debug-info{position:fixed;background-color:#0009;border:1px dotted var(--text-color);top:0;left:0;padding:5px}.variables-viewer{height:100%}.notifications-holder{position:fixed;top:0;right:0;padding:10px;display:flex;flex-direction:column-reverse;align-items:center;pointer-events:none}.notification{margin-top:10px;margin-bottom:10px;border-radius:10px;padding:15px;background:var(--notifications-bg);width:40vh;text-align:center}.save-slot{background:var(--light-background);border:1px dashed white;width:100%;padding:20px}.save-slot:not(:last-child){margin-bottom:20px}.save-name{font-size:1.2rem;font-weight:700;background-color:var(--bg-color);color:var(--text-color)}.save-modal{width:70%}.saves-container{padding:20px}#game-menu{width:100%;height:100%;padding:20px;background-color:#000}#game-title-container{margin-bottom:80px}#game-title-text{text-align:center;font-size:50px}.menu-button{font-size:25px;margin-bottom:10px}#game-header{position:relative;top:100px}.start-menu-buttons-container{width:400px}.save-modal{width:70%}.saves-container{padding:20px}.dialog-picture{position:absolute;width:80px;height:80px;border:2px solid white;border-radius:10px;background-color:gray;z-index:99}.dialog-picture img{width:100%;height:100%}.dialog-title{font-size:20px;font-weight:700}.dialog-text{font-size:16px}.dialog-box{color:var(--text-color);padding:10px 10px 10px 2em;margin-bottom:10px}.dialog-choice{color:var(--dialog-choice-color)}.dialog-choice:hover{color:var(--dialog-choice-hover-color);cursor:pointer}.buttons-container{width:100%;padding:10px;display:flex;justify-content:space-evenly;align-items:stretch;box-sizing:border-box}.interact-button{cursor:pointer;user-select:none;height:50px;color:var(--text-color);border:1px solid black;font-weight:700;font-size:24px;text-align:center;flex-grow:2;display:flex;align-items:center;justify-content:center;box-sizing:border-box}.dialog-container{flex-shrink:2;min-height:100%;width:100%;background-color:(var(--bg-color));box-sizing:border-box;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;overflow-x:hidden}.dialog{overflow-y:auto;overflow-x:hidden;position:relative;-ms-overflow-style:none;scrollbar-width:none;background:var(--bg-color)}.dialog::-webkit-scrollbar{display:none}.dialog *{overflow-anchor:none}.anchor{overflow-anchor:auto;height:1px}.menu-content{text-align:center}.menu-toggle-button{margin:0;padding:2px;border-radius:5px}.menu-toggle-button:not(:last-child){margin-right:10px}.menu-modal{width:500px}.viewport-layer{background-size:cover;background-repeat:no-repeat;background-position:center;position:absolute;left:0;top:0}.viewport-button{position:absolute;display:flex;justify-content:center;align-items:center;background:var(--light-background);color:#fff;font-size:30px;font-weight:700}.viewport-button.interactable{cursor:pointer;animation:pulse .8s infinite;animation-timing-function:linear}.viewport-button.disabled{pointer-events:none;user-select:none}.viewport-button.greyed{opacity:.3}.viewport-button.hidden{opacity:0;display:none}.viewport-sprite{position:absolute;display:flex;justify-content:center;align-items:center;color:#fff;font-size:30px;font-weight:700}.viewport-sprite.interactable{cursor:pointer}.viewport-sprite.disabled{pointer-events:none;user-select:none}@keyframes sprite-appear{0%{transform:perspective(10000px) rotateX(-120deg) scale(1)}50%{transform:perspective(10000px) rotateX(10deg) scale(1.05)}to{transform:perspective(10000px) rotateX(0) scale(1)}}.transition-holder{position:absolute;top:0;left:0;width:100%;height:100%}.viewport{position:relative}.layer-container{position:absolute;top:0;left:0;width:100%;height:100%}.hud{position:absolute;right:0;top:0;display:flex;flex-direction:row-reverse;z-index:3}.hud-stat{border:1px dotted white;background-color:var(--hud-background);color:var(--hud-text-color);padding:5px}.hud-icon{display:inline-block;height:1em}.hud-text{margin-left:5px}.game{position:absolute;background-color:var(--bg-color);display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;height:100%;box-sizing:border-box;overflow:hidden}.menu-toggle{position:fixed;bottom:0px;right:15%;z-index:2}#loading-bar{position:relative;width:60vw;height:50px;border-radius:50px;background:var(--loading-bar-outer-bg);border:3px solid white}#inner-loading-bar{height:100%;border-radius:50px 0 0 50px;background:var(--loading-bar-inner-bg)}#loading-text{z-index:99999;display:flex;align-items:center;justify-content:space-around;position:absolute;width:100%;height:100%;top:0}@keyframes animate-logo{0%{transform:perspective(10000px) rotateY(0) rotateX(0) scale(.8)}50%{transform:perspective(10000px) rotateY(180deg) rotateX(-10deg) scale(1)}to{transform:perspective(10000px) rotateY(360deg) rotateX(0) scale(.8)}}#engine-splash-header{position:absolute;width:50%;perspective:300px;transition-property:opacity}#engine-splash-header.invisible{opacity:0}#engine-splash-screen{position:absolute;width:100%;height:100%;background-color:#000}#engine-splash-logo{width:300px;height:300px;margin:50px;transform-style:preserve-3d;animation:animate-logo infinite 10s;animation-timing-function:linear}#game-splash-title{font-size:70px;text-align:center;margin-bottom:40px}#game-splash-screen{width:100%;height:100%;position:absolute;background-color:#000}.splash-start-button{padding:10px 20px;font-size:35px}#app{background-color:var(--bg-color);width:100%;height:100%;position:absolute;display:flex;flex-direction:row;align-items:center;justify-content:center;color:var(--text-color);box-sizing:border-box;overflow:hidden;transform-origin:center center}.interact-button{height:50px;border:1px solid black;font-weight:700;font-size:20px;text-align:center;flex-grow:2;display:flex;align-items:center;justify-content:center;box-sizing:border-box}.interact-button:not(:last-child){margin-right:10px}.volume-label{font-size:20px;font-weight:700;width:180px;text-align:right;margin-right:20px}.volume-controls{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--light-background);border:1px dashed white;padding:20px;margin:20px 0}.volume-control{width:100%;font-size:25px;display:flex;align-items:center;justify-content:space-between;margin:0 20px}.volume-slider{flex-grow:2;background-color:#00f}.quit-button{margin:20px;text-align:center}.main-menu-modal{width:60%}.inventory-modal{width:800px;min-height:50%}.inventory-container{display:grid;grid-auto-rows:auto;grid-template-columns:repeat(3,1fr);grid-gap:20px 20px}.item-display{width:200px;height:300px;position:relative;background-repeat:no-repeat;background-size:contain}.item-title{position:absolute;bottom:0px;text-align:center;width:100%;color:var(--inventory-text-color);background:var(--inventory-text-background)}.item-amount{position:absolute;top:0;right:0;font-weight:700;font-size:25px;color:var(--inventory-amount-color);width:40px;height:40px;background-color:var(--inventory-amount-background)}.item-description-container{justify-content:space-between;align-items:stretch}.item-left{border:1px dashed white;flex-direction:column;padding:10px;justify-content:center}.item-right{border:1px dashed white;flex-direction:column;flex-grow:2;align-items:baseline;padding:10px}.quests-modal{width:100%;min-height:50%}.quest-header{display:flex;flex-direction:row;align-items:center}.quest-title{font-size:1.5rem;font-weight:700;margin-bottom:.5rem}.quest-completed{color:var(--completed-quest-title-color)}.quest-in-progress{color:var(--quest-title-color)}.quest-state{font-size:1.25rem;font-weight:700;margin-bottom:.5rem}.quest-description{font-size:1.1rem;text-align:justify;font-style:italic;margin-bottom:.5rem}.quest-objectives-container{margin-left:10px}.quest-objective-completed{color:var(--objective-completed-color);text-decoration:line-through}.quest-objective-in-progress{color:var(--objective-in-progress-color)}.quest-objective-description{font-size:1rem;margin-bottom:.5rem}.skills-modal{width:800px}.skills-container{display:grid;grid-auto-rows:auto;grid-template-columns:repeat(3,1fr);grid-gap:20px 20px}.skill-display{width:200px;height:300px;position:relative;background-size:cover}.skill-title{position:absolute;bottom:0px;text-align:center;width:100%;color:var(--skills-text-color);background:var(--skills-text-background)}.skill-level{position:absolute;top:0;right:0;font-weight:700;font-size:25px;color:var(--skills-level-color);width:var(--skills-xp-bar-height);height:var(--skills-xp-bar-height);background-color:var(--skills-level-background)}.skill-description-container{justify-content:space-between;align-items:stretch}.skill-left{flex-direction:column;border:1px dashed white;padding:10px;justify-content:center}.skill-right{border:1px dashed white;flex-direction:column;align-items:baseline;flex-grow:2}.skill-xp-container{position:absolute;top:0;left:0;height:var(--skills-xp-bar-height);width:calc(100% - var(--skills-xp-bar-height));background-color:#00000080}.skill-xp-bar{position:absolute;top:0;left:0;width:50%;height:100%;background-color:#0000fa80}.skill-xp-text{z-index:2}
|
|
@@ -6,6 +6,7 @@ import { MainSaveData } from '../stores/main-store';
|
|
|
6
6
|
import { QuestLogSave } from '../stores/quest-log';
|
|
7
7
|
import { ScreenSave } from '../stores/screens-store';
|
|
8
8
|
import { SkillsSave } from '../stores/skills';
|
|
9
|
+
import { SpriteStoreSave } from '../stores/sprites-store';
|
|
9
10
|
import { VMSave } from '../stores/vm-store';
|
|
10
11
|
export declare type GameSave = {
|
|
11
12
|
version: string;
|
|
@@ -19,6 +20,7 @@ export declare type GameSave = {
|
|
|
19
20
|
inventory: InventorySave;
|
|
20
21
|
quests: QuestLogSave;
|
|
21
22
|
metadata: SaveSlotMetadata;
|
|
23
|
+
sprites: SpriteStoreSave;
|
|
22
24
|
};
|
|
23
25
|
export interface SaveSlotMetadata {
|
|
24
26
|
saveDate: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ParserContext } from '../vm/vm-parser';
|
|
2
2
|
export declare function parserError(ctx: ParserContext, line: number, text: string): void;
|
|
3
3
|
export declare function error(text: string, ...args: any[]): void;
|
|
4
|
+
export declare function warning(text: string, ...args: any[]): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Config } from '../config';
|
|
2
2
|
export declare const images: {
|
|
3
|
-
[key: string]: HTMLImageElement
|
|
3
|
+
[key: string]: HTMLImageElement | Promise<HTMLImageElement>;
|
|
4
4
|
};
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
5
|
+
export declare function getImage(path: string): Promise<HTMLImageElement>;
|
|
6
|
+
export declare function loadImages(config: Config): Promise<HTMLImageElement[]>;
|
|
7
|
+
export declare function downloadImage(key: string, path: string): Promise<HTMLImageElement>;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export interface TransitionState extends AddTransition {
|
|
2
|
+
oldScreen?: string | null;
|
|
3
|
+
duration: number;
|
|
4
|
+
resolve: () => void;
|
|
5
|
+
}
|
|
1
6
|
export declare type TransitionMode = 'screen' | 'button';
|
|
2
7
|
export declare function isTransitionMode(mode: any): mode is TransitionMode;
|
|
3
8
|
export interface TransitionSettings {
|
|
@@ -8,6 +13,7 @@ export declare const transitionSettings: {
|
|
|
8
13
|
[key: string]: TransitionSettings;
|
|
9
14
|
};
|
|
10
15
|
export declare function getTransitionSettings(name: string): TransitionSettings;
|
|
16
|
+
export declare function generateTransitionState(transition: AddTransition, oldScreen: string | null, resolve: () => void): TransitionState;
|
|
11
17
|
export declare type AddTransition = {
|
|
12
18
|
transition: string;
|
|
13
19
|
duration?: number;
|
|
@@ -8,6 +8,9 @@ export declare const setScreenCommand: CommandPlugin<{
|
|
|
8
8
|
}, {}>;
|
|
9
9
|
export declare const emptyLayerCommand: CommandPlugin<{
|
|
10
10
|
layer: number;
|
|
11
|
+
transitionName?: string | undefined;
|
|
12
|
+
transitionDuration?: number | undefined;
|
|
13
|
+
transitionDelay?: number | undefined;
|
|
11
14
|
}, {}>;
|
|
12
15
|
export declare const setButtonCommand: CommandPlugin<{
|
|
13
16
|
buttonId: string;
|