Repository navigation
ONLR 0.1.0
Pre-releaseONLR 0.1.0 is the first release of ONLR: an editor and an engine for 2D games that run on LÖVE 11.5. The engine is a Lua library that gives a LÖVE game nodes and components. The editor is where you arrange them, run the game and export it. LÖVE stays the runtime, unchanged: a game made with ONLR is a .love file that any LÖVE 11.5 runs.
The editor is a tool of OpenECS 0.7.0, which the archive holds, with LÖVE 11.5. Unpack the archive for your platform and run ONLR, or ONLR.cmd on Windows. Nothing else is installed. ONLR gallery opens the gallery, a project of rooms that shows what ONLR does.
This is an early release. The editor and export are tested on Linux. On Windows they are built the same way but not tested yet.
What you can do
Arrange nodes in the editor. A node file is a tree of nodes, such as a level. The node view shows it as the game draws it, and you move, rotate and scale nodes there. The nodes panel holds the tree, with search, and the inspector changes each component's properties. Every change can be undone, and the editor keeps the files while you change them in other programs.
Write components as scripts. A component is a Lua file in components/ that declares its properties and implements LÖVE's callbacks, such as update and draw. The inspector shows its properties as soon as you save it: numbers, text, colours, choices, lists, files, other nodes and other components.
Reuse node files. A node file placed in another is an instance: it keeps up with its file, and holds only what you changed. A script spawns node files while the game runs.
Use LÖVE's libraries as packages. Packages wrap well-known libraries as components:
- bump for collisions;
- LÖVE's physics;
- anim8 for animations;
- particles;
- sti for Tiled maps;
- flux and tick for tweens and timers;
- baton for input actions;
- push for scaling to the window;
- moonshine for screen effects;
- sound;
- SUIT for an interface inside the game;
- Shädows for light and shadows.
Play and export. Play runs the game in its own window. Its prints and errors show in the console, and a click on an error opens the script there. Export makes a .love file, or a build for Linux or Windows with LÖVE inside.
What will break
Everything may. ONLR has no users yet, so node files, the engine's functions and the packages change when a better way is found, and nothing converts a project made with an older version.