1. Intro

Welcome to the section on Raylib. Raylib is a library to make it easy to develop games and other programs the draw on the screen. It is developed in C, but we can also use it from Odin. One great thing is the Raylib support comes with Odin itself. It is part of the “vendor” library collection. That means you don’t need to install anything apart from Odin to start writing Raylib code. ...

May 13, 2025

2. Hellope with Raylib

Let’s kick off right away with writing a minimal Raylib program, which just opens an empty window and waits for it to be closed. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 package main import rl "core:raylib" main :: proc() { rl.InitWindow(1024, 768, "Hellope!") rl.SetTargetFPS(60) for !rl.WindowShouldClose() { rl.BeginDrawing() rl.ClearBackground(rl.BLACK) rl.EndDrawing() } rl.CloseWindow() } Save and run this program. You should see a window with a black background that is 1024x768 pixels. That’s basically it. Clicking the close button or hitting the Escape key on the keyboard will close the window. ...

May 8, 2025

Answers to Exercises

The answer section is a bit of a work in progress at the moment. Kindly be patient. I am working on providing answers to every exercise. ...

May 13, 2025