Using Libraries
There's a set of libraries shipped with LIKO-12 to be available for all games that request them.
lume
Lua functions geared towards game-dev.
local lume = Library('lume');
- Documentation & Source-code (GitHub).
- Made by rxi (Website, GitHub).
middleclass
A simple OOP library for Lua. It has inheritance, metamethods (operators), class variables and weak mixin support.
local middleclass = Library('middleclass');
- Documentation.
- Quick Reference.
- Source-code (GitHub).
- Made by kikito (Enrique García Cota) (Website, GitHub).
bump
Lua collision-detection library for axis-aligned rectangles.
local bump = Library('bump');
- Documentation & Source-code (GitHub).
- Made by kikito (Enrique García Cota) (Website, GitHub).
JSON
A simple library for serializing and deserializing data from/to JSON.
local JSON = Library('JSON');
local lua_value = JSON:decode(raw_json_text);
local raw_json_text = JSON:encode(lua_table_or_value);
local pretty_json_text = JSON:encode_pretty(lua_table_or_value);
- Blog Post.
- Source-code & Documentation (in comments).
- Made by Jeffrey Friedl (Website).
vector
A handy 2D vector class providing most of the things you do with vectors.
local vector = Library('vector');
- Documentation.
- Source-code (GitHub).
- Made by vrld (GitHub).
spritesheet
local SpriteSheet = Library('spritesheet');
- Documentation.
- Source-code (GitHub).
- Made by Rami Sabbagh (Website, GitHub).
Absolute Libraries
danger
Those libraries are absolute, deprecated and most likely will be removed in a future version.
likocam
A port of a PICO-8 library called picocam.
Check the cube
demo for an example.
local likocam = Library('likocam');
- Example & Source-code (GitHub).
- Made by josefnpat (Seppi) (Website, GitHub).
luann
Unknown Lua implementation of artificial neural-networks.
geneticAlgo
Unknown Lua implementation of the genetic algorithm.