-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsemantics.json
1310 lines (1310 loc) · 39.6 KB
/
semantics.json
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
48
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[
{
"name": "showTitleScreen",
"label": "Show title screen",
"description": "If checked, a title screen will show up when starting.",
"type": "boolean",
"default": false,
"optional": true
},
{
"name": "titleScreen",
"label": "Title screen",
"type": "group",
"importance": "low",
"fields": [
{
"name": "titleScreenIntroduction",
"label": "Introduction",
"type": "text",
"widget": "html",
"placeholder": "Welcome to ...",
"optional": true,
"enterMode": "div",
"tags": [
"sub",
"sup",
"strong",
"em",
"p",
"code",
"u",
"del",
"a",
"ul",
"ol",
"hr",
"pre",
"code"
],
"font": {
"size": true,
"color": true,
"background": true
},
"default": "<p style=\"text-align: center;\"></p>"
},
{
"name": "titleScreenMedium",
"label": "Title screen media",
"type": "library",
"optional": true,
"options": [
"H5P.Image 1.1",
"H5P.Video 1.6"
]
}
],
"widget": "showWhen",
"showWhen": {
"rules": [
{
"field": "showTitleScreen",
"equals": true
}
]
}
},
{
"name": "headline",
"label": "Headline",
"type": "text",
"description": "Optional headline for the titlebar.",
"optional": true
},
{
"name": "gamemapSteps",
"type": "group",
"label": "Game map editor",
"importance": "high",
"widget": "wizard",
"fields": [
{
"name": "backgroundImageSettings",
"label": "Background image",
"type": "group",
"importance": "high",
"fields": [
{
"name": "backgroundImage",
"type": "image",
"label": "Background image",
"importance": "high",
"description": "Select an image to use as the background of the game map."
},
{
"name": "dummy",
"type": "boolean",
"label": "Dummy",
"widget": "none"
}
]
},
{
"name": "gamemap",
"label": "Game map",
"type": "group",
"importance": "high",
"widget": "gamemap",
"fields": [
{
"name": "dummy",
"type": "boolean",
"widget": "none",
"optional": true
},
{
"name": "elements",
"type": "list",
"label": "Elements",
"importance": "high",
"entity": "Element",
"field": {
"name": "elements",
"type": "group",
"label": "Elements",
"importance": "high",
"fields": [
{
"name": "id",
"type": "text",
"label": "Id",
"widget": "none"
},
{
"name": "type",
"type": "text",
"label": "Type",
"widget": "none"
},
{
"name": "label",
"type": "text",
"label": "Stage label",
"description": "This label will be displayed on top of your exercise and will help you to connect different stages with one another.",
"importance": "medium"
},
{
"name": "canBeStartStage",
"type": "boolean",
"label": "User can start here",
"description": "If checked, this stage will be a stage that the user start at. If no stage or more than one stage can be the start stage, the starting stage will be chosen randomly.",
"importance": "medium",
"default": false
},
{
"name": "time",
"type": "group",
"label": "Time limit",
"description": "Define timer related settings.",
"fields": [
{
"name": "timeLimit",
"type": "number",
"label": "Time limit",
"description": "Optional time limit in seconds. If a user exceeds this time, the exercise will close, be reset, and the user will loose a life if lives are limited.",
"min": 1,
"optional": true
},
{
"name": "timeoutWarning",
"type": "number",
"label": "Timeout warning time",
"description": "Optionally set when a timeout warning audio should be played (number of remaining seconds). An audio needs to be set in the audio settings.",
"min": 1,
"optional": true
}
]
},
{
"name": "accessRestrictions",
"type": "group",
"label": "Access restrictions",
"description": "Define restrictions for unlocking.",
"fields": [
{
"name": "minScore",
"type": "number",
"label": "Minimum score to unlock",
"description": "The user will not be able to unlock this stage if he has not received at least this minimum score by completing other stages. Please note that this setting will have no effect if \"free roaming\" is set in the behavioural settings.",
"min": 0,
"optional": true
},
{
"name": "openOnScoreSufficient",
"type": "boolean",
"label": "Open once score sufficient",
"description": "If there has been an attempt to unlock the stage with insufficient score, should the stage unlock automatically once the score becomes sufficient.",
"default": false,
"optional": true
}
]
},
{
"name": "contentType",
"type": "library",
"label": "Stage content",
"description": "Choose the type of content you would like to add.",
"importance": "high",
"options": [
"H5P.Accordion 1.0",
"H5P.Agamotto 1.6",
"H5P.Audio 1.5",
"H5P.AudioRecorder 1.0",
"H5P.CombinationLock 1.0",
"H5P.CoursePresentation 1.25",
"H5P.Crossword 0.5",
"H5P.Dialogcards 1.9",
"H5P.DragQuestion 1.14",
"H5P.DragText 1.10",
"H5P.Essay 1.5",
"H5P.Blanks 1.14",
"H5P.ImageHotspotQuestion 1.8",
"H5P.Image 1.1",
"H5P.MultiMediaChoice 0.3",
"H5P.ImageHotspots 1.10",
"H5P.ImageSlider 1.1",
"H5P.InteractiveVideo 1.26",
"H5P.MarkTheWords 1.11",
"H5P.MemoryGame 1.3",
"H5P.MultiChoice 1.16",
"H5P.QuestionSet 1.20",
"H5P.SingleChoiceSet 1.11",
"H5P.Tabs 1.1",
"H5P.AdvancedText 1.1",
"H5P.Transcript 1.1",
"H5P.TrueFalse 1.8",
"H5P.Video 1.6",
"H5P.XRay 0.1"
]
},
{
"name": "specialStageType",
"type": "select",
"label": "Special stage type",
"options": [
{
"value": "finish",
"label": "Finish"
},
{
"value": "extra-life",
"label": "Extra life"
},
{
"value": "extra-time",
"label": "Extra time"
}
]
},
{
"name": "specialStageExtraLives",
"type": "number",
"label": "Number of extra lives",
"description": "Set how many lives the user will get when entering this stage.",
"default": 1,
"min": 1
},
{
"name": "specialStageExtraTime",
"type": "number",
"label": "Number of seconds of extra time",
"description": "Set how many seceonds the user will gain for the global time limit when entering this stage.",
"default": 1,
"min": 1
},
{
"name": "alwaysVisible",
"type": "boolean",
"label": "Always visible",
"description": "If checked, this stage will always be visible, even if the map's visibility range settings dictate otherwise.",
"default": false,
"optional": true
},
{
"name": "overrideSymbol",
"type": "boolean",
"label": "Override lock symbol",
"description": "If checked, locked stages will not use the lock symbol, but the symbol for the special stage type.",
"default": false,
"optional": true
},
{
"name": "neighbors",
"type": "select",
"label": "Connected stages",
"widget": "gamemapdynamiccheckboxes",
"importance": "medium",
"multiple": true
},
{
"name": "telemetry",
"type": "group",
"label": "Telemetry",
"importance": "low",
"widget": "none",
"fields": [
{
"name": "x",
"type": "text"
},
{
"name": "y",
"type": "text"
},
{
"name": "height",
"type": "text"
},
{
"name": "width",
"type": "text"
}
]
}
]
}
}
]
}
]
},
{
"name": "endScreen",
"label": "End screen",
"type": "group",
"importance": "low",
"fields": [
{
"name": "noSuccess",
"label": "User not successful",
"type": "group",
"importance": "low",
"fields": [
{
"name": "endScreenTextNoSuccess",
"label": "Message (user not successful)",
"type": "text",
"widget": "html",
"placeholder": "You did not make it this time ...",
"optional": true,
"enterMode": "div",
"tags": [
"sub",
"sup",
"strong",
"em",
"p",
"code",
"u",
"del",
"a",
"ul",
"ol",
"hr",
"pre",
"code"
],
"font": {
"size": true,
"color": true,
"background": true
},
"default": "<p style=\"text-align: center;\"></p>"
},
{
"name": "endScreenMediumNoSuccess",
"label": "End screen media (user not successful)",
"type": "library",
"optional": true,
"options": [
"H5P.Image 1.1",
"H5P.Video 1.6"
]
}
]
},
{
"name": "success",
"label": "User successful",
"type": "group",
"importance": "low",
"fields": [
{
"name": "endScreenTextSuccess",
"label": "Message (user successful)",
"type": "text",
"widget": "html",
"placeholder": "You made it ...",
"optional": true,
"enterMode": "div",
"tags": [
"sub",
"sup",
"strong",
"em",
"p",
"code",
"u",
"del",
"a",
"ul",
"ol",
"hr",
"pre",
"code"
],
"font": {
"size": true,
"color": true,
"background": true
},
"default": "<p style=\"text-align: center;\"></p>"
},
{
"name": "endScreenMediumSuccess",
"label": "End screen media (user successful)",
"type": "library",
"optional": true,
"options": [
"H5P.Image 1.1",
"H5P.Video 1.6"
]
}
]
},
{
"name": "overallFeedback",
"type": "group",
"label": "Overall Feedback",
"importance": "low",
"expanded": true,
"fields": [
{
"name": "overallFeedback",
"type": "list",
"widgets": [
{
"name": "RangeList",
"label": "Default"
}
],
"importance": "high",
"label": "Define custom feedback for any score range",
"description": "Click the \"Add range\" button to add as many ranges as you need. Example: 0-20% Bad score, 21-91% Average Score, 91-100% Great Score!",
"entity": "range",
"min": 1,
"defaultNum": 1,
"optional": true,
"field": {
"name": "overallFeedback",
"type": "group",
"importance": "low",
"fields": [
{
"name": "from",
"type": "number",
"label": "Score Range",
"min": 0,
"max": 100,
"default": 0,
"unit": "%"
},
{
"name": "to",
"type": "number",
"min": 0,
"max": 100,
"default": 100,
"unit": "%"
},
{
"name": "feedback",
"type": "text",
"label": "Feedback for defined score range",
"importance": "low",
"placeholder": "Fill in the feedback",
"optional": true
}
]
}
}
]
}
]
},
{
"name": "visual",
"type": "group",
"importance": "low",
"label": "Visual settings",
"fields": [
{
"name": "stages",
"type": "group",
"label": "Stages",
"importance": "low",
"optional": true,
"fields": [
{
"name": "colorStage",
"type": "text",
"label": "Color not visited stage",
"optional": true,
"default": "rgba(250, 223, 10, 0.7)",
"widget": "colorSelector",
"spectrum": {
"showInput": true,
"showInitial": true,
"showAlpha": true,
"preferredFormat": "rgb"
}
},
{
"name": "colorStageLocked",
"type": "text",
"label": "Color locked stage",
"optional": true,
"default": "rgba(153, 0, 0, 0.7)",
"widget": "colorSelector",
"spectrum": {
"showInput": true,
"showInitial": true,
"showAlpha": true,
"preferredFormat": "rgb"
}
},
{
"name": "colorStageCleared",
"type": "text",
"label": "Color cleared stage",
"optional": true,
"default": "rgba(0, 130, 0, 0.7)",
"widget": "colorSelector",
"spectrum": {
"showInput": true,
"showInitial": true,
"showAlpha": true,
"preferredFormat": "rgb"
}
}
]
},
{
"name": "paths",
"type": "group",
"label": "Paths",
"importance": "low",
"optional": true,
"fields": [
{
"name": "displayPaths",
"type": "boolean",
"label": "Display paths",
"description": "Choose whether paths will be displayed on the map. Please note: The paths are always visible in the editor.",
"optional": true,
"default": true
},
{
"name": "style",
"type": "group",
"label": "Style",
"importance": "low",
"expanded": true,
"fields": [
{
"name": "colorPath",
"type": "text",
"label": "Color path",
"optional": true,
"default": "rgba(0, 0, 0, 0.7)",
"widget": "colorSelector",
"spectrum": {
"showInput": true,
"showInitial": true,
"showAlpha": true,
"preferredFormat": "rgb"
}
},
{
"name": "colorPathCleared",
"type": "text",
"label": "Color path cleared",
"optional": true,
"default": "rgba(0, 130, 0, 0.7)",
"widget": "colorSelector",
"spectrum": {
"showInput": true,
"showInitial": true,
"showAlpha": true,
"preferredFormat": "rgb"
}
},
{
"name": "pathWidth",
"type": "select",
"label": "Path width",
"importance": "low",
"default": "0.2",
"optional": false,
"options": [
{
"value": "0.1",
"label": "thin"
},
{
"value": "0.2",
"label": "medium"
},
{
"value": "0.3",
"label": "thick"
}
]
},
{
"name": "pathStyle",
"type": "select",
"label": "Path style",
"importance": "low",
"default": "dotted",
"optional": false,
"options": [
{
"value": "solid",
"label": "Solid"
},
{
"value": "dotted",
"label": "Dotted"
},
{
"value": "dashed",
"label": "Dashed"
},
{
"value": "double",
"label": "Double"
}
]
}
]
}
]
},
{
"name": "misc",
"type": "group",
"label": "Miscellaneous",
"collapsed": true,
"importance": "low",
"fields": [
{
"name": "useAnimation",
"type": "boolean",
"label": "Animate map",
"description": "Decide if the map should be animated. Even if you set this option, the content type will honor the users' browser setting if they prefer reduced motion.",
"default": true
},
{
"name": "dummy",
"type": "boolean",
"label": "Dummy",
"widget": "none"
}
]
}
]
},
{
"name": "audio",
"type": "group",
"importance": "low",
"label": "Audio settings",
"fields": [
{
"name": "backgroundMusic",
"type": "group",
"importance": "low",
"label": "Background music",
"fields": [
{
"name": "music",
"type": "audio",
"label": "Background music",
"importance": "low",
"optional": true
},
{
"name": "muteDuringExercise",
"type": "boolean",
"label": "Mute when taking exercises",
"default": true,
"optional": true
}
]
},
{
"name": "ambient",
"type": "group",
"importance": "low",
"label": "Events",
"fields": [
{
"name": "clickStageLocked",
"type": "audio",
"label": "Click on locked stage",
"description": "Will be played on the map when clicking on a locked stage.",
"importance": "low",
"optional": true
},
{
"name": "checkExerciseNotFullScore",
"type": "audio",
"label": "Check exercise (not full score)",
"description": "Will be played when an answer is checked and the user did not get full score.",
"importance": "low",
"optional": true
},
{
"name": "checkExerciseFullScore",
"type": "audio",
"label": "Check exercise (full score)",
"description": "Will be played when an answer is checked and the user did get full score.",
"importance": "low",
"optional": true
},
{
"name": "unlockStage",
"type": "audio",
"label": "Unlocking a stage",
"description": "Will be played on the map when a stage gets unlocked.",
"importance": "low",
"optional": true
},
{
"name": "openExercise",
"type": "audio",
"label": "Open exercise",
"description": "Will be played when an exercise is opened.",
"importance": "low",
"optional": true
},
{
"name": "closeExercise",
"type": "audio",
"label": "Close exercise",
"description": "Will be played when an exercise is closed.",
"importance": "low",
"optional": true
},
{
"name": "showDialog",
"type": "audio",
"label": "Show dialog",
"description": "Will be played when a confirmation dialog is shown.",
"importance": "low",
"optional": true
},
{
"name": "fullScore",
"type": "audio",
"label": "Full score",
"description": "Will be played when the user reaches full score for the map.",
"importance": "low",
"optional": true
},
{
"name": "lostLife",
"type": "audio",
"label": "Lost a life",
"description": "Will be played when the user loses a life.",
"importance": "low",
"optional": true
},
{
"name": "gainedLife",
"type": "audio",
"label": "Gained life",
"description": "Will be played when the user gains a life.",
"importance": "low",
"optional": true
},
{
"name": "gameOver",
"type": "audio",
"label": "Game over",
"description": "Will be played when the user is game over.",
"importance": "low",
"optional": true
},
{
"name": "extraTime",
"type": "audio",
"label": "Gained extra time",
"description": "Will be played when the user gains extra time.",
"importance": "low",
"optional": true
},
{
"name": "timeoutWarning",
"type": "audio",
"label": "Timeout warning",
"description": "Will be played when the user is running out of time for an exercise or if the global time runs out.",
"importance": "low",
"optional": true
},
{
"name": "endscreenNoSuccess",
"type": "audio",
"label": "End screen (not full score)",
"description": "Will be played on the end screen if the user did not get full score.",
"importance": "low",
"optional": true
},
{
"name": "endscreenSuccess",
"type": "audio",
"label": "End screen (full score)",
"description": "Will be played on the end screen if the user got full score.",
"importance": "low",
"optional": true
}
]
}
]
},
{
"name": "behaviour",
"type": "group",
"importance": "low",
"label": "Behavioural settings",
"fields": [
{
"name": "lives",
"label": "Lives",
"description": "Set the number of lives for a user or leave empty for unlimited lives. Users will lose a life when they do not get full score and they cannot continue once all lives are lost.",
"type": "number",
"importance": "low",
"min": 1,
"optional": true
},
{
"name": "timeLimitGlobal",
"type": "number",
"label": "Global time limit",
"description": "Optional time limit in seconds for the whole game. If a user exceeds this time, the game will be over immediately.",
"min": 1,
"optional": true
},
{
"name": "timeoutWarningGlobal",
"type": "number",
"label": "Timeout warning time",
"description": "Optionally set when a timeout warning audio should be played (number of remaining seconds). An audio needs to be set in the audio settings.",
"min": 1,
"optional": true
},
{
"name": "finishScore",
"type": "number",
"label": "Finish score",
"description": "Optional score that can be lower than the summed maximum score of all exercises, so users can receive full score without completing all exercises.",
"min": 0,
"optional": true
},
{
"name": "enableRetry",
"label": "Enable \"Retry\" button",
"type": "boolean",
"importance": "low",
"default": true,
"optional": true
},
{
"name": "enableSolutionsButton",
"label": "Enable \"Show solutions\" button",
"type": "boolean",
"importance": "low",
"default": true,
"optional": true
},
{
"name": "map",
"type": "group",
"label": "Map",
"fields": [
{
"name": "showLabels",
"type": "boolean",
"label": "Show stage labels",
"description": "Choose whether a stage's label will be shown on hovering a stage with the mouse. The label will not show on touch devices.",
"default": true
},
{
"name": "roaming",
"type": "select",
"label": "Roaming",
"description": "Choose whether users can roam all stages freely, need to finish a stage to get access to that stage's neighbors, or need to pass a stage to get access to that stage's neigbors.",
"options": [
{
"value": "free",
"label": "Roam freely"
},
{
"value": "complete",
"label": "Complete to clear stage"
},
{
"value": "success",
"label": "Succeed to clear stage"
}
],
"default": "free"
},
{
"name": "fog",
"type": "select",
"label": "Visibility range",
"description": "Select how far the user can see ahead",
"optional": true,
"options": [
{
"value": "all",
"label": "See all stages"
},
{
"value": "1",
"label": "See all unlocked stages and their adjacent neighbors"
},
{
"value": "0",
"label": "See only unlocked stages"
}
],
"default": "all",
"widget": "showWhen",
"showWhen": {
"nullWhenHidden": true,
"rules": [
{
"field": "roaming",
"equals": [
"complete",
"success"
]
}
]
}
}
]
}
]
},
{
"name": "l10n",
"type": "group",
"label": "User interface",
"common": true,
"fields": [
{
"name": "start",
"type": "text",
"label": "Start",
"default": "Start"
},
{
"name": "continue",
"type": "text",
"label": "Continue",
"default": "Continue"
},
{
"name": "restart",
"type": "text",
"label": "Restart",
"default": "Restart"
},
{
"name": "showSolutions",
"type": "text",
"label": "Show solutions",
"default": "Show solutions"
},
{
"name": "completedMap",
"type": "text",
"label": "Completed the map",
"default": "You have completed the map!"
},
{