443 lines
11 KiB
JavaScript
443 lines
11 KiB
JavaScript
FullScreenMario.FullScreenMario.settings.editor = (function (prethings, macros) {
|
|
return {
|
|
"blocksize": FullScreenMario.FullScreenMario.unitsize * 4,
|
|
"mapDefault": {
|
|
"name": "New Map",
|
|
"time": "Infinity",
|
|
"locations": [
|
|
{ "entry": "Plain" }
|
|
],
|
|
"areas": [
|
|
{
|
|
"setting": "Overworld",
|
|
"creation": [
|
|
{ "macro": "Floor", "x": 0, "y": 0, "width": 128 }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"prethings": prethings,
|
|
"mapSettingDefault": "Overworld",
|
|
"mapEntrances": ["Plain", "Normal", "Castle", "PipeVertical", "Walking"],
|
|
"thingGroups": ["Text", "Character", "Solid", "Scenery"],
|
|
"things": (function () {
|
|
var things = {},
|
|
i, j;
|
|
|
|
for (i in prethings) {
|
|
if (prethings.hasOwnProperty(i)) {
|
|
for (j in prethings[i]) {
|
|
if (prethings[i].hasOwnProperty(j)) {
|
|
things[j] = prethings[i][j];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
return things;
|
|
})(),
|
|
"macros": macros
|
|
};
|
|
})({
|
|
"Characters": {
|
|
"Goomba": {},
|
|
"Koopa": {
|
|
"options": {
|
|
"smart": "Boolean",
|
|
"jumping": "Boolean",
|
|
"flying": "Boolean"
|
|
}
|
|
},
|
|
"Beetle": {},
|
|
"Piranha": {
|
|
"options": {
|
|
"evil": "Boolean"
|
|
}
|
|
},
|
|
"Blooper": {},
|
|
"CheepCheep": {
|
|
"options": {
|
|
"smart": "Boolean"
|
|
}
|
|
},
|
|
"Podoboo": {},
|
|
"Lakitu": {},
|
|
"HammerBro": {},
|
|
"Bowser": {
|
|
"options": {
|
|
"contents": {
|
|
"type": "String",
|
|
"options": [
|
|
"Gooma", "Koopa", "HammerBro", "Bowser"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"Items": {
|
|
"Mushroom": {},
|
|
"Mushroom1Up": {},
|
|
"MushroomDeathly": {},
|
|
"FireFlower": {},
|
|
"Star": {},
|
|
"Shell": {
|
|
"offsetTop": 1,
|
|
"options": {
|
|
"smart": "Boolean"
|
|
},
|
|
},
|
|
"BeetleShell": {},
|
|
"Coin": {}
|
|
},
|
|
"Solids": {
|
|
"Block": {
|
|
"options": {
|
|
"contents": {
|
|
"type": "String",
|
|
"options": [
|
|
"Coin", "Mushroom", "Star", "Mushroom1Up", "MushroomDeathly"
|
|
]
|
|
},
|
|
"hidden": "Boolean"
|
|
}
|
|
},
|
|
"Brick": {
|
|
"options": {
|
|
"contents": {
|
|
"type": "String",
|
|
"options": [
|
|
"", "Coin", "Mushroom", "Star", "Mushroom1Up", "MushroomDeathly"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"Pipe": {
|
|
"options": {
|
|
"height": {
|
|
"type": "Number",
|
|
"value": 2,
|
|
"mod": 8,
|
|
"Infinite": true
|
|
}
|
|
}
|
|
},
|
|
"PipeHorizontal": {
|
|
"options": {
|
|
"width": {
|
|
"type": "Number",
|
|
"value": 2,
|
|
"mod": 8
|
|
},
|
|
"transport": "Location"
|
|
}
|
|
},
|
|
"PipeVertical": {
|
|
"options": {
|
|
"height": {
|
|
"type": "Number",
|
|
"value": 2,
|
|
"mod": 8,
|
|
"Infinite": true,
|
|
"real": 8
|
|
},
|
|
"transport": "Location"
|
|
}
|
|
},
|
|
"Platform": {
|
|
"options": {
|
|
"width": {
|
|
"type": "Number",
|
|
"value": 4,
|
|
"mod": 2,
|
|
"real": 2
|
|
}
|
|
}
|
|
},
|
|
"Stone": {
|
|
"options": {
|
|
"width": {
|
|
"type": "Number",
|
|
"mod": 8
|
|
},
|
|
"height": {
|
|
"type": "Number",
|
|
"Infinite": true,
|
|
"mod": 8
|
|
}
|
|
}
|
|
},
|
|
"Cannon": {
|
|
"options": {
|
|
"height": {
|
|
"type": "Number",
|
|
"mod": 8
|
|
}
|
|
}
|
|
},
|
|
"Springboard": {
|
|
"offsetTop": 1.5
|
|
},
|
|
"Floor": {
|
|
"options": {
|
|
"width": {
|
|
"type": "Number",
|
|
"value": 1,
|
|
"mod": 8
|
|
},
|
|
"height": {
|
|
"type": "Number",
|
|
"value": Infinity,
|
|
"Infinite": true,
|
|
"mod": 8
|
|
}
|
|
}
|
|
},
|
|
"CastleBlock": {
|
|
"options": {
|
|
"fireballs": {
|
|
"type": "Number",
|
|
"value": 0,
|
|
"mod": 4
|
|
}
|
|
}
|
|
},
|
|
"CastleBridge": {
|
|
"options": {
|
|
"width": {
|
|
"type": "Number",
|
|
"mod": 8,
|
|
"real": 4
|
|
}
|
|
}
|
|
},
|
|
"Coral": {
|
|
"options": {
|
|
"width": {
|
|
"type": "Number",
|
|
"mod": 8
|
|
},
|
|
"height": {
|
|
"type": "Number",
|
|
"mod": 8
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"Scenery": {
|
|
"BrickPlain": {},
|
|
"Bush1": {},
|
|
"Bush2": {},
|
|
"Bush3": {},
|
|
"Cloud1": {},
|
|
"Cloud2": {},
|
|
"Cloud3": {},
|
|
"Fence": {
|
|
"options": {
|
|
"width": {
|
|
"type": "Number",
|
|
"mod": 8
|
|
}
|
|
}
|
|
},
|
|
"HillSmall": {
|
|
"offsetTop": -1.5
|
|
},
|
|
"HillLarge": {
|
|
"offsetTop": 2.5
|
|
},
|
|
"PlantSmall": {
|
|
"offsetTop": 1
|
|
},
|
|
"PlantLarge": {
|
|
"offsetTop": 1
|
|
},
|
|
"Railing": {
|
|
"options": {
|
|
"width": {
|
|
"type": "Number",
|
|
"mod": 4,
|
|
"value": 1
|
|
}
|
|
}
|
|
},
|
|
"Water": {
|
|
"options": {
|
|
"width": {
|
|
"type": "Number",
|
|
"mod": 4,
|
|
"value": 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"Fill": {
|
|
"description": "Place a bunch of Things at once, as a grid.",
|
|
"options": {
|
|
"thing": "Everything",
|
|
"xnum": 1,
|
|
"ynum": 1,
|
|
"xwidth": 8,
|
|
"yheight": 8
|
|
}
|
|
},
|
|
"Pattern": {
|
|
"description": "Fill one of the preset Scenery background patterns.",
|
|
"options": {
|
|
"pattern": [
|
|
"BackRegular", "BackCloud", "BackFence", "BackFenceMin", "BackFenceMin2", "BackFenceMin3"
|
|
],
|
|
"repeat": "Number"
|
|
}
|
|
},
|
|
"Floor": {
|
|
"description": "Place a floor of infinite height.",
|
|
"options": {
|
|
"width": {
|
|
"type": "Number",
|
|
"value": 8,
|
|
"mod": 4
|
|
}
|
|
}
|
|
},
|
|
"Pipe": {
|
|
"description": "Add a pipe with the option for piranhas and moving to locations.",
|
|
"options": {
|
|
"height": {
|
|
"type": "Number",
|
|
"value": 2,
|
|
"mod": 8,
|
|
"Infinite": true
|
|
},
|
|
"piranha": "Boolean",
|
|
"transport": "Location",
|
|
"entrance": "Location"
|
|
}
|
|
},
|
|
"Tree": {
|
|
"description": "Add a tree to the map.",
|
|
"options": {
|
|
"width": {
|
|
"type": "Number",
|
|
"value": 4,
|
|
"mod": 8
|
|
}
|
|
}
|
|
},
|
|
"Shroom": {
|
|
"function": "macroShroom",
|
|
"description": "Add a mushroom tree to the map.",
|
|
"options": {
|
|
"width": {
|
|
"type": "Number",
|
|
"value": 4,
|
|
"mod": 8
|
|
}
|
|
}
|
|
},
|
|
"Scale": {
|
|
"function": "macroScale",
|
|
"description": "Add two platforms suspended by string to the map.",
|
|
"options": {
|
|
"widthLeft": {
|
|
"type": "Number",
|
|
"value": 6,
|
|
"mod": 4
|
|
},
|
|
"widthRight": {
|
|
"type": "Number",
|
|
"value": 6,
|
|
"mod": 4
|
|
},
|
|
"between": {
|
|
"type": "Number",
|
|
"value": 10,
|
|
"mod": 4
|
|
},
|
|
"dropLeft": {
|
|
"type": "Number",
|
|
"value": 6,
|
|
"mod": 4
|
|
},
|
|
"dropRight": {
|
|
"type": "Number",
|
|
"value": 6,
|
|
"mod": 4
|
|
},
|
|
}
|
|
},
|
|
"Water": {
|
|
"function": "macroWater",
|
|
"description": "Fill water of infinite height.",
|
|
"options": {
|
|
"width": 4
|
|
}
|
|
},
|
|
"CastleSmall": {
|
|
"description": "Add a one-story castle to the map."
|
|
},
|
|
"CastleLarge": {
|
|
"description": "Add a two-story castle to the map."
|
|
},
|
|
"Ceiling": {
|
|
"description": "Add an Underworld-style ceiling of Bricks.",
|
|
"options": {
|
|
"width": "Number"
|
|
}
|
|
},
|
|
"Bridge": {
|
|
"description": "Create a bridge, complete with stone columns.",
|
|
"options": {
|
|
"width": 8,
|
|
"start": "Boolean",
|
|
"end": "Boolean"
|
|
}
|
|
},
|
|
"PlatformGenerator": {
|
|
"description": "Add a columnn of infinitely generated platforms.",
|
|
"options": {
|
|
"width": 8,
|
|
"direction": {
|
|
"type": "Number",
|
|
"options": [1, -1]
|
|
}
|
|
}
|
|
},
|
|
"StartInsideCastle": {
|
|
"description": "Add the castle stones similar to typical Castles.",
|
|
"options": {
|
|
"width": 8
|
|
}
|
|
},
|
|
"EndOutsideCastle": {
|
|
"description": "End the map off with an outdoor flag and Castle.",
|
|
"options": {
|
|
"transport": "Location",
|
|
"large": "Boolean",
|
|
"castleDistance": {
|
|
"type": "Number",
|
|
"value": 24,
|
|
"mod": 1,
|
|
},
|
|
"walls": {
|
|
"type": "Number",
|
|
"value": 2
|
|
}
|
|
}
|
|
},
|
|
"EndInsideCastle": {
|
|
"description": "End the map off with an indoor bridge, Bowser, and Toad.",
|
|
"options": {
|
|
"transport": "Location",
|
|
"npc": {
|
|
"type": "String",
|
|
"options": ["Toad", "Peach"]
|
|
},
|
|
"hard": "Boolean",
|
|
"spawnType": "Everything",
|
|
"throwing": "Boolean",
|
|
"topScrollEnabler": "Boolean"
|
|
}
|
|
}
|
|
});
|