Constructor






Methods




MainMenu:drawAnimStrip(sprite: any, subimg: any, x: any, y: any, alpha: any)

Arguments:

sprite: any
subimg: any
x: any
y: any
alpha: any












MainMenu:onKeyPressed(key: any, is_repeat: any)

Arguments:

key: any
is_repeat: any


MainMenu:onKeyReleased(key: any)

Arguments:

key: any




MainMenu:pushState(state: any, : unknown)

Arguments:

state: any
: unknown


MainMenu:setState(state: any, : unknown)

Arguments:

state: any
: unknown







Fields



Undocumented







MainMenu.animation_sine: number

Update background animation and alpha



















MainMenu.background_image_wave: love.Image

Assets required for the background animation











MainMenu.fader: Fader

A Fader is an Object that can be used to fade the screen in and out, usually using the instance stored at Game.fader
Modifying the fader's width, height, x, and y values can make it only affect a portion of the screen



MainMenu.fader_alpha: integer

Initialize variables for the background animation



MainMenu.fader_alpha: integer

Change the fade opacity for the next frame







MainMenu.heart: Sprite

A simple object that renders a texture.
This texture must be placed inside assets/sprites/.



MainMenu.heart_outline: Sprite

A simple object that renders a texture.
This texture must be placed inside assets/sprites/.

















MainMenu.music: unknown

Load menu music "mod_menu", 1, 0.95















MainMenu.stage: Stage

Initialize variables for the menu



MainMenu.state: string

Register states





MainMenu.title_screen: MainMenuTitle

Initialize all states