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.BACKGROUND_SHADER: love.Shader

A Shader is used for advanced hardware-accelerated pixel or vertex manipulation. These effects are written in a language based on GLSL (OpenGL Shading Language) with a few things simplified for easier coding.

Potential uses for shaders include HDR/bloom, motion blur, grayscale/invert/sepia/any kind of color effect, reflection/refraction, distortions, bump mapping, and much more! Here is a collection of basic shaders and good starting point to learn: https://github.com/vrld/moonshine

Open in Browser





MainMenu.animation_sine: number

Update background animation and alpha



















MainMenu.background_image_wave: love.Image|nil

Assets required for the background animation













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: Music

Load menu music "mod_menu", 1, 0.95









MainMenu.small_font: love.Font|nil

Defines the shape of characters that can be drawn onto the screen.

Open in Browser



MainMenu.stage: Stage

Initialize variables for the menu



MainMenu.state: string

Register states





MainMenu.title_screen: MainMenuTitle

Initialize all states