-
Notifications
You must be signed in to change notification settings - Fork 16
Mirin Template Reference
If you see anything that is incomplete or could be improved, feel free to click the Edit button above and make any changes you'd like.
You are welcome to make changes.
Changes you make here will automatically update the doc website and tooling. (not implemented yet)
ease {beat, len, ease_fn, [percent, mod]+, ?plr=, ?mode=, ?time=}
Eases a mod to a specific value.
The animation lasts len
beats, and animates using the selected ease_fn
.
-
beat
-- the song beat when the mod begins to apply. -
len
-- the amount of beats before the ease is complete. -
ease_fn
-- the animation used to approach the target value. -
percent
-- the target value for the given mod. -
mod
-- the mod to ease. - If
time=true
is set, then the first argument will be interpreted in seconds instead of beats. - If
mode=true
is set, then the second argument will be interpreted as an absolute timestamp instead of a duration. - If
plr=
is set- to a number, the ease will only affect the specified player.
- to a table of numbers, the ease will only affect the specified players.
add {beat, len, ease_fn, [percent, mod]+, ?plr=, ?mode=, ?time=}
Changes a mod by the given amount.
The animation lasts len
beats, and animates using the selected ease_fn
.
-
beat
-- the song beat when the mod begins to apply. -
len
-- the amount of beats before the ease is complete. -
ease_fn
-- the animation used to approach the target value. -
percent
-- the amount that will be added to the given mod. -
mod
-- the mod to ease. - If
time=true
is set, then the first argument will be interpreted in seconds instead of beats. - If
mode=true
is set, then the second argument will be interpreted as an absolute timestamp instead of a duration. - If
plr=
is set- to a number, the ease will only affect the specified player.
- to a table of numbers, the ease will only affect the specified players.
Instantly sets a mod to a given value.
Instantly changes a mod by a given value.
Sets mods back to their default value.
Runs a function at a given time.
Runs a function every frame in a range of time.
Eases a function by calling it repeatedly in a given range of time.
Aliases one mod to another.
Sets the default percentage of a mod.
Marks a mod as auxilliary.
Creates a node
Defines a new mod.
Gets the plr
global.
Re-applies a given mod.
Re-applies all mods.
Sets up a sprite for AFT effects.
Sets up an AFT for AFT effects.
Does things.
Does things.
Does things.
The x coordinate of the center of the screen, measured in game units.
@see SCREEN_CENTER_X
The y coordinate of the center of the screen, measured in game units.
@see SCREEN_CENTER_Y
The width of the screen, measured in game units.
@see SCREEN_WIDTH
The height of the screen, measured in game units.
@see SCREEN_HEIGHT
The width of the screen, measured in actual display pixels
The height of the screen, measured in actual display pixels
e="end"
It's obsolete and probably should be removed. (#73)
================== UNDOCUMENTED THINGS =================
Does things.
Does things.
Does things.