Welcome to the Odin+Raylib starter template for VS Code! This project template is designed to help you develop games for both desktop and web platforms using Odin and Raylib in VS Code.
Note: This template is primarily configured for macOS. If you’re using a different operating system, you’ll need to adjust the debug configuration accordingly.
- Desktop Debug Configuration: Build and debug the game on the desktop using CodeLLDB.
- Web Debug Configuration: Manages Live server running/shutdown and project prebuilding.
Before you begin, make sure you have the following installed:
The main game code is written in the root of the repository. The entry point is the main.odin
file within the game package. There are also two additional subpackages: web
and desktop
, which handle platform-specific execution.
The libs
folder holds all additional libraries required for the project. These libraries should be specified in the Emscripten targets in the Makefile.
The assets
folder stores all game assets. If assets are located elsewhere, their paths must be provided to Emscripten in the Makefile
.
Due to Emscripten limitations, the game module must include the following three procedures:
init
: Initializes the game, including the window.update
: Called continuously during the game loop to update game logic.dispose
: Cleans up resources before the game terminates (primarily used in the desktop subpackage).
- Puzzle Texture by kenney.nl
- Web setup inspired by Caedo and atomicptr
This project is licensed under the MIT License. See the LICENSE file for more details.