Methods
MainMenu:drawAnimStrip(sprite: any, subimg: any, x: any, y: any, alpha: any)
Arguments:
| sprite: any | |
| subimg: any | |
| x: any | |
| y: any | |
| alpha: any |
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.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.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.small_font: love.Font
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