Skip to content

Commit

Permalink
PrinceJS build 20240805
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrabolido committed Aug 5, 2024
1 parent aea2666 commit a53a6ed
Show file tree
Hide file tree
Showing 17 changed files with 382 additions and 58 deletions.
4 changes: 2 additions & 2 deletions assets/anims/mouse.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@

],

"stop": [
"stand": [

{ "cmd": 0 , "p1": 1 },
{ "cmd": 255, "p1": "stop", "p2": 0 }
{ "cmd": 255, "p1": "stand", "p2": 0 }

],

Expand Down
117 changes: 117 additions & 0 deletions assets/audio/music.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{
"resources": [
"music.ogg"
],
"spritemap": {
"01-prologue-a": {
"start": 0,
"end": 25.21832199546485,
"loop": false
},
"02-prologue-b": {
"start": 27,
"end": 44.436734693877554,
"loop": false
},
"03-princess": {
"start": 46,
"end": 62.658866213151924,
"loop": false
},
"04-jaffar-1": {
"start": 64,
"end": 80.48761904761905,
"loop": false
},
"05-heartbeat-1": {
"start": 82,
"end": 111.59238095238095,
"loop": false
},
"06-danger": {
"start": 113,
"end": 117.09977324263039,
"loop": false
},
"07-accident": {
"start": 119,
"end": 125.06185941043084,
"loop": false
},
"08-potion-1": {
"start": 127,
"end": 131.52353741496597,
"loop": false
},
"09-victory-1": {
"start": 133,
"end": 139.03863945578232,
"loop": false
},
"10-victory-2": {
"start": 141,
"end": 146.06340136054422,
"loop": false
},
"11-prince": {
"start": 148,
"end": 161.50385487528345,
"loop": false
},
"12-heartbeat-2": {
"start": 163,
"end": 174.84943310657596,
"loop": false
},
"13-heroic-death": {
"start": 176,
"end": 185.84090702947844,
"loop": false
},
"14-potion-2": {
"start": 187,
"end": 193.99936507936508,
"loop": false
},
"15-the-shadow": {
"start": 195,
"end": 203.84244897959184,
"loop": false
},
"16-float": {
"start": 205,
"end": 228.83963718820863,
"loop": false
},
"17-timer": {
"start": 230,
"end": 241.76816326530613,
"loop": false
},
"18-tragic-end": {
"start": 243,
"end": 260.192925170068,
"loop": false
},
"19-jaffar-2": {
"start": 262,
"end": 273.0744671201814,
"loop": false
},
"20-jaffar-dead": {
"start": 275,
"end": 280.65986394557825,
"loop": false
},
"21-embrace": {
"start": 282,
"end": 296.03791383219954,
"loop": false
},
"22-epilogue": {
"start": 298,
"end": 415.6308390022676,
"loop": false
}
}
}
Binary file added assets/audio/music.ogg
Binary file not shown.
172 changes: 172 additions & 0 deletions assets/audio/sounds.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
{
"resources": [
"sounds.ogg"
],
"spritemap": {
"01-fell-to-death": {
"start": 0,
"end": 0.2089795918367347,
"loop": false
},
"02-tile-crashing": {
"start": 2,
"end": 2.6733786848072563,
"loop": false
},
"03-loose-shake-1": {
"start": 4,
"end": 4.11609977324263,
"loop": false
},
"04-gate-closing": {
"start": 6,
"end": 6.11609977324263,
"loop": false
},
"05-gate-opening": {
"start": 8,
"end": 8.162539682539682,
"loop": false
},
"06-gate-closing-fast": {
"start": 10,
"end": 10.5340589569161,
"loop": false
},
"07-gate-stop": {
"start": 12,
"end": 12.069659863945578,
"loop": false
},
"08-bumped": {
"start": 14,
"end": 14.208979591836735,
"loop": false
},
"09-grab": {
"start": 16,
"end": 16.41795918367347,
"loop": false
},
"10-sword-vs-sword": {
"start": 18,
"end": 18.441179138321996,
"loop": false
},
"11-sword-moving": {
"start": 20,
"end": 20.11609977324263,
"loop": false
},
"12-guard-hurt": {
"start": 22,
"end": 22.139319727891156,
"loop": false
},
"13-kid-hurt": {
"start": 24,
"end": 24.60371882086168,
"loop": false
},
"14-medium-land": {
"start": 26,
"end": 26.41795918367347,
"loop": false
},
"15-soft-land": {
"start": 28,
"end": 28.30185941043084,
"loop": false
},
"16-draw-sword": {
"start": 30,
"end": 30.41795918367347,
"loop": false
},
"17-loose-shake-3": {
"start": 32,
"end": 32.16253968253968,
"loop": false
},
"18-loose-shake-2": {
"start": 34,
"end": 34.092879818594106,
"loop": false
},
"19-button-pressed": {
"start": 36,
"end": 36.11609977324263,
"loop": false
},
"20-footstep": {
"start": 38,
"end": 38.11609977324263,
"loop": false
},
"21-skel-alive": {
"start": 40,
"end": 40.39473922902494,
"loop": false
},
"22-jump-through-mirror": {
"start": 42,
"end": 42.301859410430836,
"loop": false
},
"23-chomped": {
"start": 44,
"end": 44.39473922902494,
"loop": false
},
"24-chomper": {
"start": 46,
"end": 46.464399092970524,
"loop": false
},
"25-hard-land": {
"start": 48,
"end": 48.464399092970524,
"loop": false
},
"26-spikes": {
"start": 50,
"end": 50.37151927437642,
"loop": false
},
"27-princess-door-opening": {
"start": 52,
"end": 52.47201814058957,
"loop": false
},
"28-falling": {
"start": 54,
"end": 55.346757369614515,
"loop": false
},
"29-leveldoor-closing": {
"start": 57,
"end": 57.92879818594104,
"loop": false
},
"30-leveldoor-sliding": {
"start": 59,
"end": 60.056009070294785,
"loop": false
},
"31-drink": {
"start": 62,
"end": 62.789478458049885,
"loop": false
},
"32-blink": {
"start": 64,
"end": 64.05804988662132,
"loop": false
},
"33-spiked": {
"start": 66,
"end": 66.38748299319728,
"loop": false
}
}
}
Binary file added assets/audio/sounds.ogg
Binary file not shown.
17 changes: 12 additions & 5 deletions assets/cutscenes/scene1.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,35 @@
{ "i": "START" },
{ "i": "ACTION", "p1": 0, "p2": "stand" },
{ "i": "ACTION", "p1": 1, "p2": "stand" },
{ "i": "WAIT", "p1": 20 },
{ "i": "WAIT", "p1": 8 },
{ "i": "MUSIC", "p1": "03-princess" },
{ "i": "WAIT", "p1": 130 },
{ "i": "SOUND", "p1": "27-door-squeak"},
{ "i": "WAIT", "p1": 5 },
{ "i": "ACTION", "p1": 0, "p2": "alert" },
{ "i": "WAIT", "p1": 6 },
{ "i": "ACTION", "p1": 1, "p2": "walk" },
{ "i": "MUSIC", "p1": "04-jaffar-1" },
{ "i": "WAIT", "p1": 6 },
{ "i": "ACTION", "p1": 1, "p2": "stop" },
{ "i": "WAIT", "p1": 20 },
{ "i": "WAIT", "p1": 40 },
{ "i": "ACTION", "p1": 1, "p2": "walk" },
{ "i": "WAIT", "p1": 30 },
{ "i": "ACTION", "p1": 1, "p2": "stop" },
{ "i": "WAIT", "p1": 35 },
{ "i": "WAIT", "p1": 45 },
{ "i": "ACTION", "p1": 1, "p2": "raise" },
{ "i": "WAIT", "p1": 1 },
{ "i": "ACTION", "p1": 0, "p2": "stepback" },
{ "i": "WAIT", "p1": 10 },
{ "i": "EFFECT" },
{ "i": "ADD_OBJECT", "p1": 0, "p2": 0, "p3": 152, "p4": 141 },
{ "i": "WAIT", "p1": 25 },
{ "i": "MUSIC", "p1": "05-heartbeat-1" },
{ "i": "WAIT", "p1": 5 },
{ "i": "ACTION", "p1": 1, "p2": "exit" },
{ "i": "START_OBJECT", "p1": 0 },
{ "i": "WAIT", "p1": 43 },
{ "i": "WAIT", "p1": 35 },
{ "i": "ACTION", "p1": 0, "p2": "slump" },
{ "i": "WAIT", "p1": 20 },
{ "i": "WAIT", "p1": 35 },
{ "i": "END" } ]
}
5 changes: 3 additions & 2 deletions assets/cutscenes/scene12.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"program": [ { "i": "ADD_ACTOR", "p1": 0, "p2": "princess", "p3": 62, "p4": 167, "p5": 1 },
{ "i": "ADD_OBJECT", "p1": 0, "p2": 2, "p3": 152, "p4": 141 },
{ "i": "ADD_OBJECT", "p1": 0, "p2": 3, "p3": 152, "p4": 141 },
{ "i": "START_OBJECT", "p1": 0 },
{ "i": "START" },
{ "i": "MUSIC", "p1": "12-heartbeat-2"},
{ "i": "ACTION", "p1": 0, "p2": "stand" },
{ "i": "WAIT", "p1": 40 },
{ "i": "WAIT", "p1": 80 },
{ "i": "END" } ]
}
5 changes: 3 additions & 2 deletions assets/cutscenes/scene15.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
{ "i": "ADD_ACTOR", "p1": 1, "p2": "kid", "p3": 140, "p4": 165, "p5": -1 },
{ "i": "ADD_ACTOR", "p1": 2, "p2": "mouse", "p3": 144, "p4": 165, "p5": -1 },
{ "i": "START" },
{ "i": "MUSIC", "p1": "21-embrace"},
{ "i": "ACTION", "p1": 0, "p2": "wait" },
{ "i": "ACTION", "p1": 1, "p2": "stand" },
{ "i": "ACTION", "p1": 2, "p2": "stop" },
{ "i": "ACTION", "p1": 2, "p2": "stand" },
{ "i": "WAIT", "p1": 10 },
{ "i": "ACTION", "p1": 1, "p2": "startrun" },
{ "i": "WAIT", "p1": 9 },
Expand All @@ -18,6 +19,6 @@
{ "i": "ACTION", "p1": 2, "p2": "scurry" },
{ "i": "WAIT", "p1": 10 },
{ "i": "ACTION", "p1": 2, "p2": "raise" },
{ "i": "WAIT", "p1": 20 },
{ "i": "WAIT", "p1": 40 },
{ "i": "END" } ]
}
7 changes: 7 additions & 0 deletions assets/cutscenes/scene16.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"program": [ { "i": "ADD_OBJECT", "p1": 0, "p2": 6, "p3": 152, "p4": 141 },
{ "i": "START" },
{ "i": "MUSIC", "p1": "18-tragic-end"},
{ "i": "WAIT", "p1": 130 },
{ "i": "END" } ]
}
Loading

0 comments on commit a53a6ed

Please sign in to comment.