Post Content
Learn to build a complete match-3 game from scratch using C programming and the Raylib graphics library in this hands-on tutorial. You’ll create a polished ASCII-based puzzle game with smooth animations, visual effects, sound integration, and responsive gameplay mechanics. The course covers everything from setting up the game loop and tile matching logic to implementing score systems, particle effects, and audio feedback.
Course created by @ErikYuzwa.
Code: https://github.com/erikyuzwa/raylib-2d-ascii-match-3
Support for this channel comes from our friends at Scrimba – the coding platform that’s reinvented interactive learning: https://scrimba.com/freecodecamp
Contents
(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
Thanks to our Champion and Sponsor supporters:
Drake Milly
Ulises Moralez
Goddard Tan
David MG
Matthew Springman
Claudio
Oscar R.
jedi-or-sith
Nattira Maneerat
Justin Hual
—
Learn to code for free and get a developer job: https://www.freecodecamp.org
Read hundreds of articles on programming: https://freecodecamp.org/news Read More freeCodeCamp.org
#programming #freecodecamp #learn #learncode #learncoding