Skip to content
Download
DownloadWhat's newRoadmapDocsDiscord
Brasa 0.11.0 · just released

Brasa

A 2D engine with a visual editor. Scripts in Lua or C++, instant Play and export for Windows and Linux.

Free · Windows and Linux · Lua and C++ · 37 downloads

How it works

Editor, code and Play

  1. 1

    Build the room

    Objects, sprites, tiles and interface are placed in the room from the editor, in layers.

  2. 2

    Write the behavior

    Each object has a Lua script or a C++ class, with events such as onSpawn and onUpdate.

  3. 3

    Press Play

    In Lua the game opens instantly. In C++ the editor compiles and shows errors linked to the line.

Playermove and shoot
function onUpdate(self)
self.hspeed = axis("esquerda", "direita") * 2
if pressed("atirar") then
spawn("Bullet", self.x, self.y - 8, "Instancias")
end
end
The editor

Everything in one place

Resources in folders, the room in the middle, the Inspector on the side and the game running in a panel of the editor itself.

Brasa — meu-jogo — Fase1
▶ PlayFase1playerpulo.wav
câmera
Fase1 · 640 × 360Pronto
Illustration: the Recursos (Resources) panel with folders, the room Fase1 with the player, coins and a slime, and the Inspector showing the camera following the Player.
Features

What Brasa includes

Lua or C++

The language is chosen when the project is created. The API has the same names in both.

Layered rooms

Instances, backgrounds, sprites and tiles in layers, with undo, multiple selection and Y sorting.

Tilemap with collision

Tileset with per-tile collision, brush, eraser, bucket and terrain brush.

Game interface

HUD, menus and lists built in the editor, with anchors. The code only wires buttons and changes values.

Code tab

Built-in code editor with API autocomplete, search and errors that jump to the line.

Sprites and animation

Slice a PNG into frames, adjust the origin and the collision box and watch the animation play.

Camera, audio and save

A camera that follows and shakes, audio in WAV, OGG and MP3 and data saved between sessions.

Export

An executable and a data folder for Windows or Linux, ready to distribute, with no installer.

Project as text

The project is a folder of readable files, organized by you, that works with Git.

Download and join

Brasa is free. Questions, bugs and suggestions are handled on the community Discord.