Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

freeCodeCamp

C Programming with Raylib - Match3 Game Tutorial

via freeCodeCamp

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to build a complete match-3 game from scratch using C programming and the Raylib graphics library in this comprehensive hands-on tutorial. Create a polished ASCII-based puzzle game with smooth animations, visual effects, sound integration, and responsive gameplay mechanics over the course of 1 hour and 14 minutes. Master fundamental game development concepts by implementing a main game loop, tile matching logic, score systems, particle effects, and audio feedback. Start with basic project setup and progress through drawing and centering tile boards, adding background images, displaying scores with custom TTF fonts, and tracking mouse interactions. Develop core gameplay mechanics including tile matching algorithms, match removal systems, smooth tile animations, and tile swapping functionality. Enhance the visual experience by implementing tile states, board backgrounds, music integration, sound effects, score popups, and dynamic score burst effects. Follow along with detailed timestamps covering each development phase from initial setup through final polish, with access to complete source code on GitHub for reference and further experimentation.

Syllabus

⌨️ 0:00:00 Introduction
⌨️ 0:01:19 Basic project intro
⌨️ 0:02:28 New Project
⌨️ 0:02:38 Main Game Loop
⌨️ 0:07:54 Drawing Tile Board
⌨️ 0:11:00 Centering Tile Board
⌨️ 0:13:07 Adding Background Image
⌨️ 0:17:24 Displaying the Score
⌨️ 0:18:21 Loading a Custom TTF
⌨️ 0:21:52 Tracking Mouse Clicks
⌨️ 0:26:10 Finding Tile Matches
⌨️ 0:33:54 Remove Matches
⌨️ 0:37:00 Adding Tile Animation
⌨️ 0:41:50 Swapping Tiles
⌨️ 0:47:18 Adding a Tile State
⌨️ 0:55:20 Adding a Board Background
⌨️ 0:57:37 Adding Music and Sound
⌨️ 1:01:14 Adding Score Popups
⌨️ 1:09:19 Adding Score Burst
⌨️ 1:12:45 Wrapping Up

Taught by

freeCodeCamp.org

Reviews

Start your review of C Programming with Raylib - Match3 Game Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.