Build whatever your heart desires, survive the environment or simply play around - it's up to you. Sandbox-2D is a sandbox survival game where you can build, destroy and explore. Ready for the laid-back experience? Download it now for free on Itch.io.
The game is a WIP, so stay tuned for new features! Currently it includes;
- Building and destroying.
- Water, lava and sand physics.
- Player controller.
- World generation with multiple biomes.
- Lighting system.
- Survival mode.
-
A, D - move left/right
-
SPACE - jump
-
LEFT CLICK - place blocks
-
RIGHT CLICK - destroy blocks
-
MIDDLE CLICK - select a block
-
E - Toggle inventory
-
ESC - Toggle pause screen
-
MINUS - zoom in
-
EQUAL - zoom out
-
CTRL+TAB - open console
This project only depends on Raylib 5.5 and it uses C++ standard 17.
You must have git, cmake, a C++ compiler and raylib installed. On Unix you must install Raylib through apt/homebrew or a different package manager (or edit the CMake). On Windows you must install Raylib through Github Releases and place all header files in lib folder and all raylib.dll and raylibdll.lib in the project directory.
- Clone the repository:
git clone https://github.com/Acerx-AMJ/Sandbox-2D.git- Navigate in the repository:
cd Sandbox-2D- Build using CMake:
cmake -B build
cmake --build buildThe executable will be found in build/sandbox. If something didn't work, feel free to open an issue.
Simply run the executable after building. Assets folder must be in the same directory in which the executable is ran.
Feel free to fork and create PRs or issues. Please read contribution guidelines before doing so.
- Fork the repository.
- Create a new branch (don't use the braces):
git checkout -b [feature-name]- Make your changes.
- Commit and push your changes:
git add . # Or, alternatively, select specific files to add
git commit -m "[commit-message]"
git push origin [feature-name]- Create a pull request.
This project owes its success to the following people and organizations:
- The code was written by and sprites were made by Acerx-AMJ.
- Windows builds were made by Jhyde927.
- SFX by DTChords.
- Thanks to Steve Matteson for creating the "Andy" font!
- Thanks to Google for creating the "Roboto" font!
- Raylib, which is used in everything from rendering to playing sounds.
- siv::PerlinNoise, which is used to generate worlds.
This project is licensed under the MIT License. Feel free to copy, edit and distribute the code.

