Bouncy balls are great entertainment

A video showed up on my YouTube feed about putting a few tools together to make a pretty and artsy program. What caught my eye, though, was this library I hadn't heard of before: raylib.

Getting it

I was immediately interested in it, from what little I had seen from watching a few minutes of Tsoding's video, it seemed very simple to use, so I wanted to give it a try.

I searched my distibution's repositories, and sure enough, raylib is available for download on openSUSE Tumbleweed, so I fetched raylib-devel and I was ready to go.

Making use of it

The video I was featured at one point a ball bouncing around the screen, just like a DVD screensaver. I can't say I wasn't inspired by that for the project I ended up making.

It's just a simple game where you click bouncing balls, using raylib for graphics.

I was absolutely right on my assumption of it being easy to use. I barely needed to check documentation at all to get something working, the language server autocompletions guided me on finding any functions I needed. It didn't get in the way at all, and required less boilerplate than SDL.

Compiling and stripping results in an executable 15KB in size, which I honestly think is stunning.

I've been getting a certain kind of joy writing C these past couple of weeks. It's simple and it puts me in control. That's pretty much the two factors that made me want to switch to Linux in the first place. Anything that goes wrong is probably my fault, and not due to heavy abstraction or complexity or someone else's mistake. I like that. It feels a little enlightening even. Hehe.