o
odinpkg.dev
packages / app / Odin-Breakout

Odin-Breakout

22c2c90app

The breakout game from https://learnopengl.com/Code-repository, written in Odin instead of C++

No license · updated 2 years ago

IMPORTANT: This project uses the odin freetype bindings found here: https://github.com/englerj/odin-freetype?tab=readme-ov-file. There are installation instructions on their page, but you basically just git clone their repo into ODIN/shared, where ODIN is the directory where you have Odin installed, and then to import the package use: import "shared:freetype"

The breakout game from https://learnopengl.com/Code-repository, written in Odin instead of C++

This is not an exact copy of the tutorial (ex. it uses SDL2 instead of GLFW), but everything is functionally about the same. I did this over the course of a week to try out programming using Odin.

I had no experience with Odin before this, so there are some organization/memory management things that could be improved upon. If I continue with Odin I might come back and update this in the future. I'm putting this on GitHub mainly for reference for myself. I wouldn't recommend using this as a template, but it might be helpful to see how certain things can be done.

There are commented links in relevant parts of the code, but I also relied on https://lazyfoo.net/tutorials/SDL/index.php for the SDL2 stuff.