Repository navigation
Releases
ONLR 0.2.0
ONLR 0.2.0 adds graphs: scripts and shaders made of blocks joined by wires, in place of code. An ira-script is a component type, and an ira-shader is a shader, and each opens in a workspace of its own, where you try what you wire. Shaders written in GLSL work too, on any node. The editor gains a search, a menu of every panel, snapping for every tool and a console that sorts, and each package does more of what its library does. A user's guide now comes with ONLR.
The editor is a tool of OpenECS 0.8.0, which the archive holds, with LÖVE 11.5. Unpack the archive for your platform and run ONLR, or ONLR.cmd on Windows. 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
Read the guide. GUIDE.md, in the archive, says how to make a game with ONLR, step by step: a first game, scripts and graphs, node files, the camera and shaders, the packages, playing and export.
Work in workspaces. The editor has a workspace for each kind of editing: Scene for node files, Script for ira-scripts and Shader for ira-shaders. A graph opens in its kind's workspace, and Alt+W, then a number, switches. In the Script and Shader workspaces, the files panel starts in ira-scripts/ or ira-shaders/. New Project makes both folders.
Wire graphs. The graph panel shows a graph as blocks and wires. A right click lists the blocks, with a search, and a wire dropped on empty space lists only the blocks that can take it. A block's pins show the kind of their value by colour, and a block such as Add works on numbers and vectors alike. An input without a wire shows a field for its value. Properties, added in the list at the left, show in the inspector on each component of the graph. Choosing, moving, copying and undoing work as in the node view.
Make shaders of blocks. An ira-shader is used as a .glsl file is: drag it onto a pass of onlr.shader. The Preview panel draws it on a checker or on an image of your project, and can hold time still. Each block shows a small picture of its value, which its arrow folds away. A graph that cannot be built keeps its last picture, dimmed, and the wrong block turns red. Copy as GLSL writes the shader as a GLSL file of your own.
Make scripts of blocks. An ira-script is a component type: a node holds it as it holds a script, and they read each other's properties. Its event blocks, such as Update and Key Pressed, start flows of blocks: branches, sequences, a loop over a node's children, properties got and set, maths and prints. An error turns its block red, and its message in the console opens the graph at the block.
Try a script in its workspace. The Script workspace has a node view and the Game bar beside the graph. The view follows the Scene, or shows a node file that you choose, such as a small test, and Play plays what it shows.
Turn a graph into code. Copy as Lua Script writes an ira-script as a script of your own in components/, named <name>_generated.lua at first, and keeps the graph. Convert to Script replaces the ira-script with a script of the same name, after asking: its nodes use the script from then on, and the graph goes to the trash.
Shade nodes. The component onlr.shader draws a node and all under it through one or more shaders, in the node view as in the game. A shader's values show in the inspector, with sliders, colours and defaults from a comment on each line. A script sets them by their names, and time moves a shader by itself.
Find anything. The box at the title bar's right, or Ctrl+K, finds nodes, files, component types, your scripts' functions and the editor's commands.
Arrange the editor. Panel, in the title bar, lists every panel, opens one that was closed, and gives the focus to one that is open. The Transform and Game bars are icons, whose tooltips name them and their keys.
Place nodes precisely. Snap keeps every tool to its steps: pixels for Move and Shape, degrees for Turn, and a step for Scale. Ctrl turns it on or off for one drag. The pivot is each node's middle by default. A double click in the node hierarchy frames a node in the view, which glides there. The eye and the lock hide and lock nodes in the node view.
Watch values change. A number dragged in the inspector shows in the node view at once, for every chosen node, and is one change when you let go.
Read the console. The newest entry is at the top. Sort orders entries by time, level or source, and a repeated message shows once, with its count.
Use more of each package. anim8 plays runs of frames. audio has a mixer of the volumes by kind of sound. particles cuts its particles from a sprite sheet. physics drags a body with a mouse joint, and a kinematic body follows its node and carries what stands on it. bump scales a scaled node's box. sti gives its objects' size and properties to their instances, and loads another map when a script changes it. shadows' lights darken only their own nodes, and turn with a camera. suit has a theme for the widgets under a node. A script's change of a package's property applies by itself.
Small fixes
- Delete sends a file to the system's trash, or to ONLR's own trash where a drive has none.
- The files panel shows a picture of each file's kind: node files, scripts, shaders, the manifest and packages.
- The Shape tool's double click follows the system's speed of double clicks.
- A preview that is starting finishes before a build that is asked of it, so Copy as Lua Script works while the preview restarts.
- moonshine's effects measure what the chain draws into; flux and tick can be stopped while their group updates; suit's text field clips its text.
./shuild -iinstalls ONLR's desktop entry and icon.
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. A project of 0.1.0 needs ira-scripts/ and ira-shaders/ only to hold graphs. A script and an ira-script of the same name stop the project loading.
ONLR 0.1.0
ONLR 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.