
Introduction to the course
We will setup RayLib with visual studio, and all course assets are here in the resources zip
We'll setup the Asset folder in this video
you'll create a sprite class to make working with crops and tiles easier in this video
you'll create your ground tiles to use in your game
you'll create crops to use in the game here
you will learn how to setup a camera class and add some functionality
Here you will setup the assets
you will learn how to create a map to farm in this video
How to update the farm
you will learn how to make a crop class
here you learn how to handle crop planting
we will learn how to make crops grow in this video
you will learn how to create a Game Clock in this video
we will Fix the updating to happen using a tickrate to help performance
here we will setup a basic crop toolbar
we will optimize the code to make adding plants to the game much easier
we will implement the harvesting and gold collection system in this video
In this video you will learn how to play sounds and music using raylib
Welcome to Build a Farming Game with Raylib and C++!
In this hands-on project-based course, you will learn how to create a complete farming game from scratch using Raylib and C++. Rather than focusing on isolated programming concepts, we will build a real game step-by-step while learning the core systems used in many 2D games.
Throughout the course, you will create a tile-based farming world where players can till soil, plant crops, grow them over time, harvest them for gold, and interact with various gameplay systems. Along the way, you will gain practical experience working with game architecture, rendering, user interfaces, audio, and object-oriented programming.
In this course, you will learn how to:
Set up Raylib and create a C++ game project
Load and manage game assets
Create reusable sprite, tile, and crop systems
Build a tile-based game world
Implement camera movement and world rendering
Create crop growth systems using timers and update loops
Add player tools and gameplay interactions
Display user interfaces in screen space
Implement harvesting and gold systems
Add background music and audio
Refactor and organize code for easier expansion
By the end of the course, you will have a fully functional farming game and a solid understanding of the programming concepts required to build your own 2D games with Raylib.
Whether you are a beginner interested in game development or a programmer looking to learn Raylib through a practical project, this course will provide a fun and approachable way to gain real-world game development experience.