Skip to content
FORJA I

Pre-launch · Interest list open

Your first game in C++. With code you understand.

Learn the fundamentals of C++ by building a 2D arena game without a ready-made engine. Start with your first program, then write, run, change and investigate your own code.

FORJA I is in preparation. Join the list for program updates, a sample when available and a notice when enrollment opens.

Notify me

Free interest list. You can unsubscribe at any time.
Joining the list does not charge you, enroll you or unlock the course.

No coding experience requiredA 2D game in C++Lessons in Portuguese

Start here

It is your game. Learn to build the rules that make it work.

Press a key and the character moves. To change its speed or the edge of the arena, you will find the input and the rule in the code, make a change and run the game again to see the effect.

How I build a game in C++

In the video, I build a 3D horror room without a game engine. In FORJA I, you start with C++ fundamentals and build a 2D arena game.

Watch on YouTube (in Portuguese)

Learning with AI around

AI can write code. You learn how to evaluate it.

AI can give you code to move a character. But if it walks through a wall or moves too fast, how do you find out what happened? Understanding the program helps you make the next change, even when the first version was ready-made.

Here, writing is part of the exercise: predict what will happen, run the program and find out why the result was different. You can ask AI for help. Go back to the code and check what it suggested.

Try it

The character moves. Now change the rule.

Think of movement you have just coded or asked AI to generate:

Change

How would you slow the character down or make it respond to another key?

Investigate

If it moves differently on another computer, where do you start looking?

Explain

Can you describe what controls the movement and why you chose that solution?

The path to your game

The curriculum has 32 planned lessons across four stages. Open a stage to see what you will practice.

01–08Set up your workbench and learn C++
  1. 01 What we will build and how to study it

    Concepts
    Game, code and library
    Objective
    Identify the parts of the project.
    Practice
    Write down one game rule you would like to change.
  2. 02 Your first C++ program

    Concepts
    Editor, compiler and terminal
    Objective
    Compile and run a program.
    Practice
    Change the message printed in the terminal.
  3. 03 Variables, types and values

    Concepts
    Basic types and state
    Objective
    Represent health and score with variables.
    Practice
    Change the starting values and check the output.
  4. 04 Conditionals: how the game makes decisions

    Concepts
    Comparisons and branches
    Objective
    Determine a win or loss from the game state.
    Practice
    Test the rules at the boundary between winning and losing.
  5. 05 Loops and counters

    Concepts
    Loops and stopping conditions
    Objective
    Control rounds with a counter.
    Practice
    Change the round limit and verify when the program stops.
  6. 06 Functions: breaking down problems

    Concepts
    Parameters and return values
    Objective
    Separate input, rules and display.
    Practice
    Write a function that calculates damage.
  7. 07 Structures and collections

    Concepts
    struct and std::vector
    Objective
    Represent a player and their items.
    Practice
    Add an item and iterate over the collection to display it.
  8. 08 Errors, the debugger and project structure

    Concepts
    Breakpoints and state inspection
    Objective
    Find the source of a bug in the terminal project.
    Practice
    Use the debugger to find where behavior first diverges.
09–16Make the program respond and draw
  1. 09 Pointers and references: the essentials

    Concepts
    Addresses and passing state
    Objective
    Explain when a function changes the original state.
    Practice
    Compare the same change by value and by reference.
  2. 10 Your first window with SDL3

    Concepts
    SDL3, windows and rendering
    Objective
    Open, draw in and close a window.
    Practice
    Change the background color and run the program again.
  3. 11 Events and keyboard: make the program respond

    Concepts
    Events and keyboard input
    Objective
    Read key input and handle a window close.
    Practice
    Assign an action to a different key.
  4. 12 Game loop, frames and time

    Concepts
    Input, update, rendering and delta time
    Objective
    Separate the stages of the game loop.
    Practice
    Change movement speed without tying it to the frame rate.
  5. 13 Draw a 2D character

    Concepts
    Shapes, position and size
    Objective
    Draw the character in the arena.
    Practice
    Change its position and size separately.
  6. 14 Movement, boundaries and coordinates

    Concepts
    Axes, displacement and boundaries
    Objective
    Move the character within the visible area.
    Practice
    Test movement against all four edges.
  7. 15 Turn rules into functions

    Concepts
    State updates and functions
    Objective
    Separate player updates from rendering.
    Practice
    Move the boundary calculation into a function.
  8. 16 Your first playable version

    Concepts
    Input, update and rendering together
    Objective
    Run the arena with stable movement.
    Practice
    Move around the arena and check what happens at its edges.
17–24Build the rules of the game
  1. 17 Obstacles, entities and state

    Concepts
    Entities and arena data
    Objective
    Represent obstacles with their own state.
    Practice
    Add an obstacle at a different position.
  2. 18 2D collisions without magic formulas

    Concepts
    Bounds and intersection
    Objective
    Detect when the player and an obstacle overlap.
    Practice
    Compare edge contact, overlap and separation.
  3. 19 Health, damage and brief invulnerability

    Concepts
    Health state and timers
    Objective
    Limit damage from continuous contact.
    Practice
    Keep the player in contact and observe the interval between hits.
  4. 20 Score, difficulty and time

    Concepts
    Scoring and progression
    Objective
    Explain how time changes the difficulty.
    Practice
    Change a scoring rule and check the result.
  5. 21 Menu, pause and game over

    Concepts
    States and transitions
    Objective
    Control the start, pause and end of a round.
    Practice
    Verify that game state stops changing during pause.
  6. 22 Spawning and organizing entities

    Concepts
    Spawning, removal and collections
    Objective
    Manage how entities enter and leave the game.
    Practice
    Spawn an entity during play and remove it according to a rule.
  7. 23 Sprites and external assets

    Concepts
    Textures, files and licenses
    Objective
    Load assets with compatible licenses.
    Practice
    Replace a sprite and document where it came from.
  8. 24 Visual feedback and basic audio

    Concepts
    Game cues and optional audio
    Objective
    Make an important change noticeable during play.
    Practice
    Add a visual cue for taking damage.
25–32Organize, debug and ship the project
  1. 25 Responsibilities and C++ files

    Concepts
    Modules, headers and implementation
    Objective
    Separate game, state and asset responsibilities.
    Practice
    Move a rule into its own module and compile again.
  2. 26 Real bugs: guided debugging

    Concepts
    Logs, breakpoints and regressions
    Objective
    Find the cause of a reproducible regression.
    Practice
    Record the case, inspect the state and verify the fix.
  3. 27 Improve gameplay without expanding scope

    Concepts
    Pacing, input and difficulty
    Objective
    Evaluate the effect of one gameplay adjustment.
    Practice
    Compare two speeds while keeping the other rules fixed.
  4. 28 Manual tests and simple automated checks

    Concepts
    Scenarios, edge cases and assertions
    Objective
    Verify a rule in a repeatable way.
    Practice
    Test edge collisions and automate one simple case.
  5. 29 Save a high score if the core game is stable

    Concepts
    Local persistence
    Objective
    Recover a high score between runs.
    Practice
    Close and reopen the game to check the saved value.
  6. 30 Packaging and the executable

    Concepts
    Distribution build and assets
    Objective
    Produce an executable with its assets.
    Practice
    Run the game from the distribution folder.
  7. 31 Final challenge: add your own mechanic

    Concepts
    Rules, state and documentation
    Objective
    Implement a mechanic of your own.
    Practice
    Describe the rule and demonstrate its effect in the game.
  8. 32 Final review: where to go next

    Concepts
    Review, demonstration and next steps
    Objective
    Present the game and explain three technical choices.
    Practice
    Show the game running and explain your decisions in the code.

C++20 · SDL3 · CMake · no ready-made engine

The course is in preparation.

Lessons are planned for release in stages. When enrollment opens, you can check which lessons are available, what is scheduled and the terms of access.

Availability: 0 of 32 planned lessons. The next release date is yet to be announced.

Join the FORJA I list.

Get program updates, a sample when available and a notice when enrollment opens. Lessons are in Portuguese.

From your first code to your first game.
How your data is handled

Free interest list. You can unsubscribe at any time.
Joining the list does not charge you, enroll you or unlock the course.

Before joining the list

Any questions?

Do I need to know C++ or have coded before?

No. We will start with the fundamentals, with no previous experience required.

Will we use a ready-made engine?

No. We will use C++20, SDL3 and CMake. SDL3 is a library that helps with windows, input and drawing. I will explain these tools as we work on the project.

Do I need advanced math?

For this game, we will study coordinates, time, movement and collisions as they come up in the code.

Can I enroll now?

Enrollment is closed. You can join the free list to find out when it opens.

Will the whole course be available when enrollment opens?

The plan is to release lessons in stages. You can check what has been published and review the terms of access before deciding.

What kind of computer do I need?

The exercises require a computer that can compile and run C++. Supported operating systems will be listed after the development setup has been tested.

Does FORJA I include OpenGL, Vulkan or individual mentoring?

The course covers a 2D game with SDL3. OpenGL, Vulkan, individual mentoring and other FORJA levels are outside this curriculum.

How do I stop receiving emails?

Use the unsubscribe link in Forja emails. Live stream alerts have a separate signup.