Add ending room
This commit is contained in:
parent
18d44e3f26
commit
9fc509a494
4 changed files with 489 additions and 3 deletions
BIN
assets/sprites/gf.png
Normal file
BIN
assets/sprites/gf.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 507 B |
|
@ -23451,4 +23451,476 @@ LevelDatabase["Boss 3"] = {music: "boss", background: {image: "boss", width: 307
|
|||
axes: [{x: 0, y: 0, radius: -352, angle: 0, length: 360, left: [0], right: [0]}],
|
||||
boss: 1,
|
||||
rocks: [], keys: [], doors: [], transitions: [], spawn: {axis: 0, position: 1, z: 0}};
|
||||
|
||||
LevelDatabase["Ending"] =
|
||||
{
|
||||
"background": {
|
||||
"image": "boss",
|
||||
"width": 3072
|
||||
},
|
||||
"tint": {
|
||||
"rgb": 12595392,
|
||||
"a": 0.7,
|
||||
"effect": "MULTIPLY"
|
||||
},
|
||||
"axes": [
|
||||
{
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"radius": 0,
|
||||
"angle": 0,
|
||||
"length": 4096,
|
||||
"left": [
|
||||
0
|
||||
],
|
||||
"right": [
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"rocks": [
|
||||
{
|
||||
"x": 210,
|
||||
"y": 0,
|
||||
"z": -1154,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 156,
|
||||
"y": 0,
|
||||
"z": -32,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 127,
|
||||
"y": 0,
|
||||
"z": -31,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 98,
|
||||
"y": 0,
|
||||
"z": -31,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 68,
|
||||
"y": 0,
|
||||
"z": -31,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 36,
|
||||
"y": 0,
|
||||
"z": -31,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 4,
|
||||
"y": 0,
|
||||
"z": -31,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 151,
|
||||
"y": 0,
|
||||
"z": 55,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 151,
|
||||
"y": 0,
|
||||
"z": 156,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 151,
|
||||
"y": 0,
|
||||
"z": 264,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 151,
|
||||
"y": 0,
|
||||
"z": 374,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 151,
|
||||
"y": 0,
|
||||
"z": 483,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 219,
|
||||
"y": 0,
|
||||
"z": 538,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 315,
|
||||
"y": 0,
|
||||
"z": 548,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 405,
|
||||
"y": 0,
|
||||
"z": 548,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 501,
|
||||
"y": 0,
|
||||
"z": 521,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 606,
|
||||
"y": 0,
|
||||
"z": 495,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 669,
|
||||
"y": 0,
|
||||
"z": 448,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 702,
|
||||
"y": 0,
|
||||
"z": 399,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 732,
|
||||
"y": 0,
|
||||
"z": 347,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 767,
|
||||
"y": 0,
|
||||
"z": 288,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 703,
|
||||
"y": 0,
|
||||
"z": 48,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 703,
|
||||
"y": 0,
|
||||
"z": -54,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 703,
|
||||
"y": 0,
|
||||
"z": -194,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 703,
|
||||
"y": 0,
|
||||
"z": -332,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 703,
|
||||
"y": 0,
|
||||
"z": -484,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 703,
|
||||
"y": 0,
|
||||
"z": -628,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 703,
|
||||
"y": 0,
|
||||
"z": -768,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 703,
|
||||
"y": 0,
|
||||
"z": -914,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 703,
|
||||
"y": 0,
|
||||
"z": -1045,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 703,
|
||||
"y": 0,
|
||||
"z": -1176,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 703,
|
||||
"y": 0,
|
||||
"z": -1321,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 733,
|
||||
"y": 0,
|
||||
"z": -1255,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 733,
|
||||
"y": 0,
|
||||
"z": -1097,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 733,
|
||||
"y": 0,
|
||||
"z": -987,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 733,
|
||||
"y": 0,
|
||||
"z": -844,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 733,
|
||||
"y": 0,
|
||||
"z": -711,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 733,
|
||||
"y": 0,
|
||||
"z": -549,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 733,
|
||||
"y": 0,
|
||||
"z": -397,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 733,
|
||||
"y": 0,
|
||||
"z": -263,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 733,
|
||||
"y": 0,
|
||||
"z": -120,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 733,
|
||||
"y": 0,
|
||||
"z": 19,
|
||||
"type": "large"
|
||||
},
|
||||
{
|
||||
"x": 743,
|
||||
"y": 0,
|
||||
"z": 113,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 809,
|
||||
"y": 0,
|
||||
"z": 223,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 905,
|
||||
"y": 0,
|
||||
"z": 223,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 1012,
|
||||
"y": 0,
|
||||
"z": 223,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 1117,
|
||||
"y": 0,
|
||||
"z": 223,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 1226,
|
||||
"y": 0,
|
||||
"z": 223,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 1332,
|
||||
"y": 0,
|
||||
"z": 223,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 848,
|
||||
"y": 0,
|
||||
"z": 112,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 947,
|
||||
"y": 0,
|
||||
"z": 112,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 1045,
|
||||
"y": 0,
|
||||
"z": 112,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 1155,
|
||||
"y": 0,
|
||||
"z": 112,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 1259,
|
||||
"y": 0,
|
||||
"z": 112,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 1360,
|
||||
"y": 0,
|
||||
"z": 112,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 1468,
|
||||
"y": 0,
|
||||
"z": 112,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 1569,
|
||||
"y": 0,
|
||||
"z": 112,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 1676,
|
||||
"y": 0,
|
||||
"z": 112,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 1782,
|
||||
"y": 0,
|
||||
"z": 112,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 1441,
|
||||
"y": 0,
|
||||
"z": 222,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 1547,
|
||||
"y": 0,
|
||||
"z": 222,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 1655,
|
||||
"y": 0,
|
||||
"z": 222,
|
||||
"type": "wide"
|
||||
},
|
||||
{
|
||||
"x": 1752,
|
||||
"y": 0,
|
||||
"z": 222,
|
||||
"type": "wide"
|
||||
}
|
||||
],
|
||||
"keys": [
|
||||
{
|
||||
"x": 1413,
|
||||
"y": 0,
|
||||
"z": 165,
|
||||
"color": "white"
|
||||
},
|
||||
/*{
|
||||
"x": 626,
|
||||
"y": 0,
|
||||
"z": 209,
|
||||
"color": "red"
|
||||
}*/
|
||||
],
|
||||
"doors": [],
|
||||
"transitions": [
|
||||
{
|
||||
"position": {
|
||||
"x": 68.05700538979374,
|
||||
"y": 4.1672896905082536e-15,
|
||||
"z": -129.90288017310678
|
||||
},
|
||||
"bbox": {
|
||||
"x": 32,
|
||||
"y": 32,
|
||||
"z": 320
|
||||
},
|
||||
"destination": {
|
||||
"stage": "Boss 2",
|
||||
"axis": 2,
|
||||
"position": 923,
|
||||
"z": -200,
|
||||
"momx": -4,
|
||||
"momy": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"position": {
|
||||
"x": 1612.1973169210771,
|
||||
"y": 9.87186141880674e-14,
|
||||
"z": 164.785887340671
|
||||
},
|
||||
"bbox": {
|
||||
"x": 32,
|
||||
"y": 32,
|
||||
"z": 32
|
||||
},
|
||||
"destination": {
|
||||
"stage": "Intro",
|
||||
"axis": 0,
|
||||
"position": 6102,
|
||||
"z": 58,
|
||||
"momx": 2,
|
||||
"momy": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"spawn": {
|
||||
"axis": 0,
|
||||
"position": 633,
|
||||
"z": 209
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
//
|
|
@ -35,4 +35,16 @@ RescueDatabase["Save 3"] = {
|
|||
"...",
|
||||
"Do not let him bring harm to you.",
|
||||
]
|
||||
};
|
||||
|
||||
RescueDatabase["Ending"] = {
|
||||
sprite: "gf",
|
||||
dead: "you betcha",
|
||||
position: {
|
||||
"x": 626,
|
||||
"y": 0,
|
||||
"z": 209 },
|
||||
lines: [
|
||||
".....",
|
||||
]
|
||||
};
|
|
@ -48,8 +48,10 @@ Rescuee = function(level, data, dolphin) {
|
|||
zd = dolphin.position.z - data.position.z;
|
||||
|
||||
if (xd * xd + yd * yd + zd * zd < 40*40) {
|
||||
rescuee.bubble.position.x = -99999;
|
||||
rescuee.bubble.activeSprite.visible = false;
|
||||
if (rescuee.bubble) {
|
||||
rescuee.bubble.position.x = -99999;
|
||||
rescuee.bubble.activeSprite.visible = false;
|
||||
}
|
||||
|
||||
rescuee.think = cutscene;
|
||||
|
||||
|
@ -87,7 +89,7 @@ Rescuee = function(level, data, dolphin) {
|
|||
if (line) {
|
||||
text = Renderer.typewriterText(line, 30, 220);
|
||||
level.stage.addChild(text);
|
||||
} else {
|
||||
} else if (rescuee.barrier) {
|
||||
rescuee.barrier.position.x = -99999;
|
||||
rescuee.barrier.activeSprite.visible = false;
|
||||
rescuee.barrier.think = undefined;
|
||||
|
|
Loading…
Add table
Reference in a new issue