Lua or C++
The language is chosen when the project is created. The API has the same names in both.
A 2D engine with a visual editor. Scripts in Lua or C++, instant Play and export for Windows and Linux.
Objects, sprites, tiles and interface are placed in the room from the editor, in layers.
Each object has a Lua script or a C++ class, with events such as onSpawn and onUpdate.
In Lua the game opens instantly. In C++ the editor compiles and shows errors linked to the line.
function onUpdate(self) self.hspeed = axis("esquerda", "direita") * 2
if pressed("atirar") then spawn("Bullet", self.x, self.y - 8, "Instancias") endend#include <brasa/brasa.hpp>using namespace brasa;
class Player : public Entity {public: void onUpdate() override { hspeed = axis("esquerda", "direita") * 2;
if (pressed("atirar")) spawn<Bullet>(x, y - 8, "Instancias"); }};Resources in folders, the room in the middle, the Inspector on the side and the game running in a panel of the editor itself.
The language is chosen when the project is created. The API has the same names in both.
Instances, backgrounds, sprites and tiles in layers, with undo, multiple selection and Y sorting.
Tileset with per-tile collision, brush, eraser, bucket and terrain brush.
HUD, menus and lists built in the editor, with anchors. The code only wires buttons and changes values.
Built-in code editor with API autocomplete, search and errors that jump to the line.
Slice a PNG into frames, adjust the origin and the collision box and watch the animation play.
A camera that follows and shakes, audio in WAV, OGG and MP3 and data saved between sessions.
An executable and a data folder for Windows or Linux, ready to distribute, with no installer.
The project is a folder of readable files, organized by you, that works with Git.
Brasa is free. Questions, bugs and suggestions are handled on the community Discord.