Skip to content
Download
DownloadWhat's newRoadmapDocs
Brasa 0.6.0 · just released

Brasa

A 2D game engine for beginners. Build the levels by dragging objects, write the behavior in C++ and press Play.

Free · Windows 10 and 11 · C++ projects · 9 downloads

How it works

From zero to Play in three steps

  1. 1

    Build the room

    Create objects, give each one a sprite and drag them into the level. The room is where the game happens.

  2. 2

    Write the behavior

    Open the object's code in VS Code and say what it does on every step: move, shoot, collide.

  3. 3

    Press Play

    Brasa compiles and opens the game in a window. Changed something? Close it, tweak it and press Play again.

Player.cppmove with the arrow keys and shoot with space
#include <brasa/brasa.hpp>
using namespace brasa;
class Player : public Entity {
public:
void onUpdate() override {
if (held(Key::Left)) x -= 2;
if (held(Key::Right)) x += 2;
if (pressed(Key::Space))
spawn<Bullet>(x, y - 8);
}
};
The editor

Everything in one place

Resources in folders, the room in the middle, the Inspector on the side and a big Play button.

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

Made for beginners

Rooms in the editor

Drag objects into the level, move, duplicate and undo. You see the room the way it will look in the game.

Real C++

Each object is a class. You write only the events you need, with simple names like held, spawn and after.

Play in one click

Brasa saves everything, compiles and opens the game. If something goes wrong, the error shows up with a link to the right line.

Sprite editor

Import a PNG, slice it into frames, drag the origin and the collision box and watch the animation play.

Camera included

Follow the player, keep the camera inside the room and adjust the smoothing without writing a line of code.

Crisp pixel art

The game runs at a small resolution and is scaled up without blurring. The pixels stay the way you drew them.

Autocomplete in VS Code

The project comes set up for VS Code, and each API function has a short explanation (in Portuguese, for now).

Your project is a folder

Organize the files in folders your own way. Everything is readable text that works well with Git.

Light up your first game

Brasa is free. Download the latest version or see what's coming next.