Libraries are external packages that you can import and use in your projects. Some libraries extend
the capabilities of LÖVR and others just make it easier to get stuff done. Libraries are usually
distributed as a single Lua file. You can copy the Lua file into your project and
require it to
use the library:
-- library.lua is sitting next to our main.lua here local lib = require('library') function lovr.load() lib.doStuff() end
Below is a catalog of useful libraries. All of them can be used with LÖVR, although some of them only depend on Lua and aren't specific to LÖVR.
List of Libraries
- 30log - A library for object oriented programming in Lua.
- cpml - A 3D math library for Lua.
- flux - A tweening library for Lua.
- knife - A collection of useful micromodules for Lua.
- lodr - A live-reloading wrapper for LÖVR.
- lovr-ent - Entity tree library / sample project.
- lovr-grid - A library for drawing grids.
- lovr-haxe-wrappergen - Haxe bindings for LÖVR.
- lovr-icosphere - A library to create icospheres.
- lovr-keyboard - Keyboard input
- lovr-lighting - Simple lighting shaders to add to
- lovr-mouse - Mouse input
- lovr-oculus-mobile - Android information and tools for LÖVR.
- lovr-pointer - A general pointer system that can be used to select objects or create teleporters.
- lovr-webvr-server - A local development server for testing WebVR projects.
- lume - Lua utility functions geared towards game development.
- maf - A 3D math library with vectors and quaternions.
- pollr - LÖVR input polling.
- tiny-ecs - An entity component system for Lua.
- tween.lua - A tweening library for Lua.
- Vivid - A Lua library for color manipulations and conversions.