Install s&box
Get access
Head to sbox.game/give-me-that, log in with your Steam account, and click the button to add s&box to your Steam library. Access is available to everyone through the developer preview.
Install both apps
Open Steam and navigate to the Library tab. Search for s&box and install both:
- s&box — the game itself
- s&box editor — the development environment
Explore Testbed
Before you start building, take a few minutes to play Testbed — the built-in showcase game that demonstrates core engine features.Launch s&box (not the editor)
Start the s&box game from Steam. On the main menu, find and join the game called testbed.
What you just experienced: the menu uses the s&box UI system, which is HTML-like with C# code — similar to Blazor. When you clicked a scene, you entered a Scene, which is a JSON file on disk. Scenes load and switch near-instantly, which is a core design goal of the engine.You can download the Testbed source code on GitHub. Open its
.sbproj file in the editor to browse and edit the scenes in the Asset Browser.Create your first project
The best way to learn is to build something yourself.Open the editor and create a project
Launch the s&box editor. On the welcome screen, click New Project and select Minimal Game from the project templates.
Create a GameObject
You’ll start with an empty scene. Right-click the hierarchy tree on the left side of the editor and select an object type to create your first GameObject.
Add a Component
Select your new GameObject. In the Inspector panel on the right, click Add Component and type a name for a new component. The file will open in Visual Studio.
Read player input
Use the Input documentation to learn how to read key presses. Update your component to change
WorldPosition based on which keys are pressed.You’ve now learned the fundamentals of GameObjects and Components — the building blocks of every game made in s&box.