Make a Breakout Clone From Scratch Using C/C++ with Raylib | RAYLIB5
Raylib is highly inspired by Borland BGI graphics lib and by XNA framework and it's especially well suited for prototyping, tooling, graphical applications, embedded systems and education.
In this video tutorial, we go through the process of creating a Breakout clone video game using C/C++ and the Raylib library. We're mostly using C, but taking advantage of the STL Vectors and STL String as well.
ππGrab the source (on github): https://t.ly/VpITD
πLinks & References:
- Raylib website: https://www.raylib.com/
- Raylib github: https://github.com/raysan5/raylib
- Raylib API Cheatsheet: https://www.raylib.com/cheatsheet/cheatsheet.html
- Pixel Ocean Background: https://www.reddit.com/r/PixelArt/comments/gly4k0/500x500_pixel_ocean_background_feel_free_to_use/
- JSFXR: https://sfxr.me/
- Painter's Algorithm: https://en.wikipedia.org/wiki/Painter%27s_algorithm
ππ»Connect with me:
Twitter: https://www.twitter.com/eyuzwa
===---=== Chapters ===---===
0:00:00 - Introduction
0:00:45 - Link to setup video
0:02:53 - The Demo
0:03:19 - Create the Project in VS2022
0:04:14 - Setup Raylib in VS2022 (link to setup video)
0:05:58 - Game Window
0:08:18 - Basic Game Lifecycle Phases
0:12:03 - Using Raylib Images and Texture2D
0:15:36 - Drawing the Player Paddle
0:22:41 - Adding Collision Detection
0:25:25 - Drawing the Ball
0:35:35 - Drawing the Score Text
0:39:06 - Adding Bricks!
0:44:29 - Brick Collision Detection
0:47:10 - Brick Random Color
0:49:35 - Adding Sound Effects
0:54:07 - Wrapping Up
#raylib #gamedev #clanguage