Build your first project
A small guide for the current Forge2D workflow.
Getting started
Create a project, open it in Forge2D, select a source file, then use Build or Run from the toolbar.
project/
├── assets/
├── game.cpp
├── game.h
├── main.cpp
└── project.forgeProject structure
main.cpp is the application entry point. game.cpp contains game logic and game.h declares it. Assets live in the assets folder.
Build & run
g++ -std=c++17 -I"PROJECT" -o ".forge/build/MyForgeGame.exe" main.cpp game.cppForgeLink
ForgeLink is the build bridge used by the editor. It reports the compiler, command, result, and output executable directly in the build console.
Get Forge2D