Skip to content

A VSCode starter template for developing desktop and web games using Odin and Raylib, complete with debugging configurations and project prebuilding.

License

Notifications You must be signed in to change notification settings

byTimo/vscode-odin-raylib-web-desktop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vscode Odin+Raylib dekstop/web starter

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.

Features

  • Desktop Debug Configuration: Build and debug the game on the desktop using CodeLLDB.
  • Web Debug Configuration: Manages Live server running/shutdown and project prebuilding.

Prerequisite

Before you begin, make sure you have the following installed:

Project Structure

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.

Game Structure

Due to Emscripten limitations, the game module must include the following three procedures:

  1. init: Initializes the game, including the window.
  2. update: Called continuously during the game loop to update game logic.
  3. dispose: Cleans up resources before the game terminates (primarily used in the desktop subpackage).

Credits

Lincese

This project is licensed under the MIT License. See the LICENSE file for more details.

About

A VSCode starter template for developing desktop and web games using Odin and Raylib, complete with debugging configurations and project prebuilding.

Topics

Resources

License

Stars

Watchers

Forks

Languages