@pop-party/create-game 1.0.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.
Files changed (25) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -0
  3. package/bin/create-game.js +28 -0
  4. package/package.json +34 -0
  5. package/src/cli-arguments.js +47 -0
  6. package/src/generate-game.js +150 -0
  7. package/starter/ASSET-NOTICES.json +73 -0
  8. package/starter/content/art/manifest.json +13573 -0
  9. package/starter/content/audio/host-audios.json +3 -0
  10. package/starter/content/blobs/1c14e1db26cfb96105b2cbf60591a18329834078cc65e14373715d4ec06f07ef.svg +5 -0
  11. package/starter/content/blobs/2d1298fc8597b4b13dc74c8a4093ce7c8d6027ef955c4af31ed6a6d03034d527.svg +3 -0
  12. package/starter/content/blobs/4d1b3ad12d64d7f145e282dc44b2c510d8cc36c0a609fcef831fe9c59270bf35.svg +8 -0
  13. package/starter/content/blobs/7a3a06ea1280a916254e2af034762e798b11e45f5eb7a1f4e0ba1a3ad4b8af48.svg +3 -0
  14. package/starter/content/blobs/8785460bf8b2311bfd2a5c06e97f9faac0deafd584b8f3de428c38399e2df16d.svg +6 -0
  15. package/starter/content/blobs/8dbc40965debd1f9f516461ed2b6ca0dd95557f8a762dbeaf67459e4b343497a.svg +8 -0
  16. package/starter/content/blobs/a531c3ee6f5bfa5b478b6ecda5799f1031ceea367ca9d93585545b3de0ed34d7.svg +7 -0
  17. package/starter/content/blobs/d54e3eae53b88a705370aa028c3ea55297d549e3521aca6a41435f87e4a18167.svg +6 -0
  18. package/starter/content/constants.json +22 -0
  19. package/starter/content/content-bundle.json +96 -0
  20. package/starter/content/flow.json +1594 -0
  21. package/starter/content/game-data/runtime.json +39 -0
  22. package/starter/content/layouts/controller.json +737 -0
  23. package/starter/content/layouts/stage.json +195 -0
  24. package/starter/content/prompts/prompts.json +125 -0
  25. package/starter/content/semantic-roles.json +86 -0
@@ -0,0 +1,195 @@
1
+ {
2
+ "canvas": {
3
+ "width": 1920,
4
+ "height": 1080
5
+ },
6
+ "global": {
7
+ "id": "global",
8
+ "name": "Global Layout",
9
+ "hiddenInStates": false,
10
+ "elements": [
11
+ {
12
+ "id": "stageCodeBadge",
13
+ "name": "Small Room Code Widget",
14
+ "selector": "#stageCodeBadge",
15
+ "kind": "art",
16
+ "artCompositionId": "stage-code-widget",
17
+ "x": 108,
18
+ "y": 70,
19
+ "width": 170,
20
+ "height": 82,
21
+ "scale": 1
22
+ },
23
+ {
24
+ "id": "presentClickWidget",
25
+ "name": "Cursor Widget",
26
+ "selector": "#presentClickWidget",
27
+ "kind": "art",
28
+ "artCompositionId": "presentation-click-prompt",
29
+ "x": 1780,
30
+ "y": 930,
31
+ "width": 90,
32
+ "height": 90,
33
+ "scale": 1
34
+ },
35
+ {
36
+ "id": "playerLobby",
37
+ "name": "Player Avatars",
38
+ "selector": "#playerLobby",
39
+ "x": 960,
40
+ "y": 935,
41
+ "width": 1320,
42
+ "height": 150,
43
+ "scale": 1
44
+ },
45
+ {
46
+ "id": "stageBackground",
47
+ "name": "Background Layer",
48
+ "kind": "art",
49
+ "artCompositionId": "stage-background",
50
+ "layoutLayer": "background",
51
+ "x": 960,
52
+ "y": 540,
53
+ "width": 1920,
54
+ "height": 1080,
55
+ "scale": 1,
56
+ "defaultAnimationState": "On"
57
+ }
58
+ ]
59
+ },
60
+ "states": [
61
+ {
62
+ "id": "lobby",
63
+ "name": "Lobby",
64
+ "hiddenGlobals": [
65
+ "stagecodebadge"
66
+ ],
67
+ "elements": [
68
+ {
69
+ "id": "startPopup",
70
+ "name": "Countdown Popup",
71
+ "selector": "#startPopup",
72
+ "kind": "art",
73
+ "artCompositionId": "countdown-popup",
74
+ "x": 960,
75
+ "y": 130,
76
+ "width": 700,
77
+ "height": 130,
78
+ "scale": 1
79
+ },
80
+ {
81
+ "id": "stageTitle",
82
+ "name": "Header",
83
+ "x": 960,
84
+ "y": 190,
85
+ "width": 1080,
86
+ "height": 150,
87
+ "scale": 1,
88
+ "kind": "art",
89
+ "artCompositionId": "layout-text-field",
90
+ "autoFitText": false,
91
+ "defaultText": "Header",
92
+ "fontColor": "#ffffff",
93
+ "fontSize": 58
94
+ },
95
+ {
96
+ "id": "stageCodePanel",
97
+ "name": "Stage Code Panel",
98
+ "selector": ".stage-code-panel",
99
+ "kind": "art",
100
+ "artCompositionId": "stage-code-panel",
101
+ "x": 960,
102
+ "y": 390,
103
+ "width": 560,
104
+ "height": 190,
105
+ "scale": 1
106
+ },
107
+ {
108
+ "id": "stageJoinQr",
109
+ "name": "Join QR Code",
110
+ "selector": "#stageJoinQr",
111
+ "kind": "art",
112
+ "artCompositionId": "join-qr-code",
113
+ "x": 1510,
114
+ "y": 420,
115
+ "width": 260,
116
+ "height": 300,
117
+ "scale": 1
118
+ },
119
+ {
120
+ "id": "waitingStatus",
121
+ "name": "Waiting Status",
122
+ "selector": "#waitingStatus",
123
+ "x": 960,
124
+ "y": 575,
125
+ "width": 700,
126
+ "height": 82,
127
+ "scale": 1
128
+ },
129
+ {
130
+ "id": "joinPrompt",
131
+ "name": "Join Prompt",
132
+ "selector": "#joinPrompt",
133
+ "kind": "art",
134
+ "artCompositionId": "join-widget",
135
+ "x": 960,
136
+ "y": 650,
137
+ "width": 740,
138
+ "height": 76,
139
+ "scale": 1
140
+ }
141
+ ]
142
+ },
143
+ {
144
+ "id": "intro",
145
+ "name": "Game Intro",
146
+ "elements": [
147
+ {
148
+ "id": "stageIntroTitle",
149
+ "name": "Intro Header",
150
+ "x": 960,
151
+ "y": 235,
152
+ "width": 1060,
153
+ "height": 130,
154
+ "scale": 1,
155
+ "kind": "art",
156
+ "artCompositionId": "layout-text-field",
157
+ "autoFitText": false,
158
+ "defaultText": "Intro Header",
159
+ "fontColor": "#ffffff",
160
+ "fontSize": 58
161
+ },
162
+ {
163
+ "id": "stagePresentationText",
164
+ "name": "Presentation Text",
165
+ "kind": "art",
166
+ "x": 960,
167
+ "y": 460,
168
+ "width": 980,
169
+ "height": 240,
170
+ "scale": 1,
171
+ "defaultText": "",
172
+ "fontSize": 58,
173
+ "autoFitText": false,
174
+ "fontColor": "#ffffff",
175
+ "artCompositionId": "layout-text-field"
176
+ },
177
+ {
178
+ "id": "stagePromptText",
179
+ "name": "Prompt Text",
180
+ "kind": "art",
181
+ "x": 960,
182
+ "y": 760,
183
+ "width": 860,
184
+ "height": 120,
185
+ "scale": 1,
186
+ "defaultText": "Prompt Text",
187
+ "fontSize": 58,
188
+ "autoFitText": false,
189
+ "fontColor": "#ffffff",
190
+ "artCompositionId": "layout-text-field"
191
+ }
192
+ ]
193
+ }
194
+ ]
195
+ }
@@ -0,0 +1,125 @@
1
+ {
2
+ "prompts": [
3
+ {
4
+ "id": "four-letter-word",
5
+ "prompt": "Which of these is a 4-letter word?",
6
+ "options": [
7
+ "Hi",
8
+ "Cat",
9
+ "Fish",
10
+ "House"
11
+ ],
12
+ "correctAnswerIndex": 2
13
+ },
14
+ {
15
+ "id": "animal-that-flies",
16
+ "prompt": "Which of these animals can fly?",
17
+ "options": [
18
+ "Dog",
19
+ "Penguin",
20
+ "Falcon",
21
+ "Horse"
22
+ ],
23
+ "correctAnswerIndex": 2
24
+ },
25
+ {
26
+ "id": "planet-red",
27
+ "prompt": "Which planet is known as the Red Planet?",
28
+ "options": [
29
+ "Venus",
30
+ "Mars",
31
+ "Jupiter",
32
+ "Neptune"
33
+ ],
34
+ "correctAnswerIndex": 1
35
+ },
36
+ {
37
+ "id": "water-freezes",
38
+ "prompt": "At what temperature does water freeze in Celsius?",
39
+ "options": [
40
+ "0",
41
+ "10",
42
+ "50",
43
+ "100"
44
+ ],
45
+ "correctAnswerIndex": 0
46
+ },
47
+ {
48
+ "id": "largest-ocean",
49
+ "prompt": "Which ocean is the largest?",
50
+ "options": [
51
+ "Atlantic",
52
+ "Pacific",
53
+ "Indian",
54
+ "Arctic"
55
+ ],
56
+ "correctAnswerIndex": 1
57
+ },
58
+ {
59
+ "id": "primary-color",
60
+ "prompt": "Which of these is a primary color?",
61
+ "options": [
62
+ "Green",
63
+ "Purple",
64
+ "Red",
65
+ "Orange"
66
+ ],
67
+ "correctAnswerIndex": 2
68
+ },
69
+ {
70
+ "id": "weekday-after-monday",
71
+ "prompt": "Which day comes after Monday?",
72
+ "options": [
73
+ "Sunday",
74
+ "Tuesday",
75
+ "Friday",
76
+ "Saturday"
77
+ ],
78
+ "correctAnswerIndex": 1
79
+ },
80
+ {
81
+ "id": "shape-three-sides",
82
+ "prompt": "Which shape has three sides?",
83
+ "options": [
84
+ "Square",
85
+ "Circle",
86
+ "Triangle",
87
+ "Hexagon"
88
+ ],
89
+ "correctAnswerIndex": 2
90
+ },
91
+ {
92
+ "id": "five-plus-two",
93
+ "prompt": "What is 5 + 2?",
94
+ "options": [
95
+ "6",
96
+ "7",
97
+ "8",
98
+ "9"
99
+ ],
100
+ "correctAnswerIndex": 1
101
+ },
102
+ {
103
+ "id": "instrument-keys",
104
+ "prompt": "Which instrument usually has keys?",
105
+ "options": [
106
+ "Drum",
107
+ "Piano",
108
+ "Trumpet",
109
+ "Violin"
110
+ ],
111
+ "correctAnswerIndex": 1
112
+ },
113
+ {
114
+ "id": "opposite-hot",
115
+ "prompt": "Which word is the opposite of hot?",
116
+ "options": [
117
+ "Warm",
118
+ "Cold",
119
+ "Bright",
120
+ "Fast"
121
+ ],
122
+ "correctAnswerIndex": 1
123
+ }
124
+ ]
125
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "roles": {
4
+ "engine.stage.activeBackground": {
5
+ "compositionId": "stage-background"
6
+ },
7
+ "engine.stage.playerIdentityWidget": {
8
+ "compositionId": "prefab-player-widget-mc"
9
+ },
10
+ "engine.stage.playerAnswerBubble": {
11
+ "compositionId": "prefab-player-widget-mc",
12
+ "instancePath": [
13
+ "playerAnswerBubbleMC"
14
+ ]
15
+ },
16
+ "engine.stage.playerPointsPopup": {
17
+ "compositionId": "player-point-popup"
18
+ },
19
+ "engine.stage.playerPointsPopupContainer": {
20
+ "compositionId": "prefab-player-widget-mc",
21
+ "instancePath": [
22
+ "pointPopupContainer"
23
+ ]
24
+ },
25
+ "engine.stage.votingCard": {
26
+ "compositionId": "prefab-voting-card-mc"
27
+ },
28
+ "engine.stage.timer": {
29
+ "compositionId": "crafting-timer-widget"
30
+ },
31
+ "engine.stage.transition": {
32
+ "compositionId": "wipe-widget-mc"
33
+ },
34
+ "engine.stage.joinQrCode": {
35
+ "compositionId": "join-qr-code"
36
+ },
37
+ "engine.stage.roomCode": {
38
+ "compositionId": "stage-code-widget"
39
+ },
40
+ "engine.stage.roomCodePanel": {
41
+ "compositionId": "stage-code-panel"
42
+ },
43
+ "engine.stage.joinPrompt": {
44
+ "compositionId": "join-widget"
45
+ },
46
+ "engine.stage.waitingStatus": {
47
+ "compositionId": "waiting-status-widget"
48
+ },
49
+ "engine.stage.countdown": {
50
+ "compositionId": "countdown-popup"
51
+ },
52
+ "engine.stage.presentationAdvancePrompt": {
53
+ "compositionId": "presentation-click-prompt"
54
+ },
55
+ "engine.stage.layoutText": {
56
+ "compositionId": "layout-text-field"
57
+ },
58
+ "engine.shared.playerAvatar": {
59
+ "compositionId": "prefab-player-avatar-mc"
60
+ },
61
+ "engine.controller.playerIdentity": {
62
+ "compositionId": "controller-player-banner"
63
+ },
64
+ "engine.controller.textInput": {
65
+ "compositionId": "controller-text-input-field"
66
+ },
67
+ "engine.controller.submitControl": {
68
+ "compositionId": "controller-primary-button"
69
+ },
70
+ "engine.controller.choiceControl": {
71
+ "compositionId": "controller-choice-option"
72
+ },
73
+ "engine.controller.invalidSubmission": {
74
+ "compositionId": "controller-invalid-banner"
75
+ },
76
+ "engine.controller.stageCodeInput": {
77
+ "compositionId": "controller-stage-code-field"
78
+ },
79
+ "engine.controller.playerNameInput": {
80
+ "compositionId": "controller-player-name-field"
81
+ },
82
+ "engine.controller.avatarChoice": {
83
+ "compositionId": "controller-avatar-button"
84
+ }
85
+ }
86
+ }