# facepunch/sbox-public

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/facepunch-sbox-public).**

6,285 stars · 626 forks · C# · NOASSERTION

## Links

- GitHub: https://github.com/Facepunch/sbox-public
- Homepage: https://sbox.game
- awesome-repositories: https://awesome-repositories.com/repository/facepunch-sbox-public.md

## Topics

`gamedev` `sbox` `source2`

## Description

s&box is a game development platform built on Valve's Source 2 engine, integrating the .NET runtime as a first-class scripting and gameplay logic layer. It provides a full-featured visual editor that combines asset management, level design, and code editing into a single workflow, enabling developers to create and edit games within a modern editor environment.

The platform distinguishes itself through a managed-native interop bridge that allows C# code to interact directly with native Source 2 systems for high-performance communication, alongside a hot-reload scripting system that supports live code changes during gameplay without restarting the session. An entity-component system architecture organizes game objects as entities with attachable components, enabling modular behavior composition through C# scripts.

The development pipeline includes an asset compilation process that transforms source assets into optimized runtime formats, and the editor-first approach integrates all stages of game creation into a unified interface. The platform is designed for building and iterating on games using Source 2's rendering, physics, and world simulation capabilities through the managed .NET runtime layer.

## Tags

### Game Development

- [Source 2 Engine Integrations](https://awesome-repositories.com/f/game-development/source-2-engine-integrations.md) — Leverages Valve's Source 2 engine for rendering, physics, and world simulation through a managed .NET runtime layer.
- [Entity Component Systems](https://awesome-repositories.com/f/game-development/engine-architecture/entity-component-systems.md) — Organizes game objects as entities with attachable components, enabling modular behavior composition through C# scripts.
- [Game Development Engines](https://awesome-repositories.com/f/game-development/game-engines-frameworks/game-engines/game-development-engines.md) — Builds and iterates on games using a modern engine with Source 2 and .NET, with a full-featured editor for world design.

### Part of an Awesome List

- [Source 2 World Editors](https://awesome-repositories.com/f/awesome-lists/devtools/game-editors/source-2-world-editors.md) — Designs and builds game worlds using a full-featured editor built on Source 2. ([source](https://cdn.jsdelivr.net/gh/facepunch/sbox-public@master/README.md))

### Development Tools & Productivity

- [Hot-Reloading Systems](https://awesome-repositories.com/f/development-tools-productivity/hot-reloading-systems.md) — Supports live code reloading during gameplay, allowing developers to modify C# scripts without restarting the game session.
- [Graphics Asset Compilers](https://awesome-repositories.com/f/development-tools-productivity/asset-compilation-pipelines/graphics-asset-compilers.md) — Transforms source models, textures, and sounds into optimized runtime formats through a build-time compilation pipeline.

### Programming Languages & Runtimes

- [Game Engine Interop Bridges](https://awesome-repositories.com/f/programming-languages-runtimes/native-managed-interop-callbacks/game-engine-interop-bridges.md) — Bridges managed C# code with native Source 2 systems using a custom interop layer for high-performance communication.
- [Game Engine Hostings](https://awesome-repositories.com/f/programming-languages-runtimes/net-runtimes/game-engine-hostings.md) — Hosts the .NET runtime as a first-class scripting layer for gameplay logic within a Source 2 game engine.

### User Interface & Experience

- [Game World Editors](https://awesome-repositories.com/f/user-interface-experience/drag-and-drop-utilities/visual-editors/local-development-editors/game-world-editors.md) — Provides a full-featured visual editor that combines asset management, level design, and code editing into a single workflow.
