Types
These are the data types that are used by this wiki; some of them are wiki-specific aggregates for clearer documentation reasons.
Types
Lua Types
You can use the type function to get the type of a variable.
nil
- Denotes the lack of a value. Only 'nil' has the type 'nil'.
boolean
- Denotes a logical value. Can be 'true' or 'false'.
number
- Denotes a double-precision floating-point value. Includes infinities and not-a-numbers.
string
- Denotes an array of characters; immutable.
table
- Denotes a combined numerical-array and hash-table.
function
- Denotes a callable function.
userdata
- Denotes arbitrary C data.
thread
- Denotes coroutines.
Löve Types
Data
- Superclass of the below types.
CompressedData
- Holds arbitrary compressed data.
CompressedImageData
- Holds compressed image data.
FileData
- Holds file data.
FontData
- Holds font data.
GlyphData
- Holds glyph data.
ImageData
- Holds image data.
SoundData
- Holds sound data.
Object
- Superclass of the below types.
Math
Physics
Joint
FrictionJoint
GearJoint
MotorJoint
MouseJoint
PrismaticJoint
PulleyJoint
RevoluteJoint
RopeJoint
WeldJoint
WheelJoint
Thread
Graphics
Cursor
PixelEffect
- Deprecated version of Shader type.
Shader
Quad
Canvas
Framebuffer
- Deprecated version of Canvas type.
Image
Sound
Filesystem
Fonts
Input
Video
Semantic (Wiki) Types
table flat table
- Denotes a combined numerical-array and hash-table that does not have any table values inside it.
Variant
- Can be a flat table, a boolean, a number, a string, or a LÖVE userdata.
Other
LUBE
Enet