Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 967 Bytes

README.md

File metadata and controls

43 lines (30 loc) · 967 Bytes

odin-sdl2-x

Game-dev experiments using Odin and SDL2

Prerequisites

Tested with Odin version: dev-2024-02:4e300ff90

Project setup

For Windows, run the setup script to copy the required .dll files from the Odin vendor library into this project directory.

odin build setup/setup.odin -file
./setup.exe

For linux (tested on Debian), you will need to install the dependencies:

sudo apt-get install libsdl2-dev
sudo apt-get install libsdl2-ttf-dev

Running the launcher

This allows launching some of the other examples after setting which monitor they should open on, and what resolution and refresh rate to use.

odin run launcher -o:speed

Running standalone examples

odin run breakout/breakout.odin -file -o:speed
odin run dynamic_text/dynamic_text.odin -file
odin run shader/shader.odin -file
odin run ui/ui.odin -file