o
odin.langpkg.dev
packages / library / odin_raylib_template

odin_raylib_template

b59f148library

A base template for starting Raylib projects in Odin

MIT · updated 2 years ago

Raylib (Odin) Base Template

This is a raylib library game development template which includes such features as:

  • Initialization of memory tracking to help find memory leaks. This is controlled by a #config build parameter defined as MEMCHECK which is on by default. Use -define:MEMCHECK=false during build to disable.
  • Initialization of a Raylib window with VSYNC turned on.
  • Delta Time calculations (default set to 60 FPS). This also calculates a "delta time blend" which is used for smoother calculation of different objects for a game.
  • Basic constants for window width and height as well as target FPS.

Other than the above preferences, this template doesn't attempt to dictate how a game should be written, optimized or what type of build system should be used to package the game.

It also includes configuration files for the Odin Language Server.