Methods
MainMenu:drawAnimStrip(sprite: any, subimg: any, x: any, y: any, alpha: any)
Arguments:
sprite: any | |
subimg: any | |
x: any | |
y: any | |
alpha: any |
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
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.
MainMenu.stage: Stage
Initialize variables for the menu
MainMenu.state: string
Register states
MainMenu.title_screen: MainMenuTitle
Initialize all states