-
Notifications
You must be signed in to change notification settings - Fork 0
StageAPI
This is the global variable that allows you to execute StageAPI functions.
Gets the StageObject for a new floor. If isMultiStage is true then the floor will have a stage 1 and a stage 2.
Next time Isaac travels through a trapdoor, they shall be sent to the specified stage.
Clears the room of all entities and grid entities. Called automatically when entering a boss room, before ChangeRoomLayout is called to add entities and grid entities.
Selects a random room from roomFile. If Type is specified, rooms selected are restricted to Type.
backdropData is arranged as such:
{
{ -- Variant 1
NFLOORS = {
"nfloor1.png"
},
LFLOORS = {
"lfloor1.png"
},
CORNERS = {
"corner1.png"
},
WALLS = {
"wall1_1.png",
"wall1_2.png"
}
},
{ -- Variant 2
NFLOORS = {
"nfloor2.png"
},
LFLOORS = {
"lfloor2.png"
},
CORNERS = {
"corner2.png"
},
WALLS = {
"wall2_1.png",
"wall2_2.png"
}
}
}
BOSS = {} can also be specified, for special boss room walls. Variants and backdrops with multiple file names are chosen between with seeded randomization.
Gets the current backdrop sprite. May not work.
sprite is an optional override. Changes door spritesheet out for specified file name.
sprite is an optional override. Changes pit spritesheet out for specified file name.
sprite is an optional override. Changes rock spritesheet out for specified file name.
StageAPI.ChangeGridEnts(rockFileName, pitFileName, decoData, pitSpriteOverride, rockSpriteOverride, decoSpriteOverride)
All are optional. Changes grid entity spritesheets out for specified file name.
OverlayObject StageAPI.AddOverlay(anm2, velocity, offset, position)
All but anm2 are optional. Returns an OverlayObject that can be used to render overlays, and moves / renders based on velocity, offset, and position.
Returns number of stages.
Plays a boss intro. Will only work well if another boss intro is already playing.
Returns current stage.
Returns true if the player is in catacombs or a new stage.