Using (a.k.a., Linking) Third Party Libraries Like RayLib in Your Project with CMake

My previous CMake tutorial taught the basics: how to compile multiple source files into one program. That’s great and all, but you’re almost guaranteed to need third-party libraries when writing something that’s actually useful. You don’t want to be writing all that code yourself. So, today we’re going to tackle linking your program to third-party […]

RayLib 2D Challenge Part 8 – Walking on Terrain (Simulating Physics)

Part 7 of this challenge got a 2D camera working that smoothly tracks the player. Everything looks great until Scarfy walks too far in either direction. At that point it’s obvious that the ground was totally faked. Here’s the offending code:auto boundingRect = actor->getBoundingBox(); auto distToGround = groundYPos – (boundingRect.y + boundingRect.height); bool isOnGround = […]

Shopping Cart
Scroll to Top