If you've taken a game-development class, you may have seen a project like this. Whenever I give a demo of beginner programming to someone, I usually use this project as an example. There's a few elements that make this a really simple project idea: the "player" movement doesn't need to be bounded, since it is naturally bounded by being based on mouse position. It also tackles a very simple example of using random to effect the game, and it comes with a hint of the very beginnings of 2D collision. Please leave any suggestions or corrections below and I will address them as they come. If you are having trouble or have any questions, I will also try to be quick to respond to those.
Link to the Source Code:
https://github.com/AndrewHamel111/ray...
My video on the C Language:
• C Language Overview
My video on Tic-Tac-Toe with Raylib in C:
• Making Tic-Tac-Toe in Raylib with C
My video on Minesweeper with Raylib in C:
• Making Minesweeper in Raylib with C
Chapters
0:00 Introduction
3:33 Resources & Setup
6:33 Apple struct and array
10:09 Drawing the Apples
12:10 More array functions
17:49 Adding the basket
23:43 Core game logic
26:31 Drawing UI
29:22 Conclusion