Newbie 2D Game Development in C with Raylib

Ғылым және технология

In today's video I share with you my journey of developing my first ever game in C with Raylib.
#raylib
GitHub: github.com/unconv/c-raylib-game
Raylib installation: github.com/raysan5/raylib/wiki
Part 1: • Newbie 2D Game Develop... (this video)
Part 2: • 2D Game in C with AI G...
Part 3: • Adding NPCs to my C Ra...
00:00:00 Intro
00:00:55 Downloading raylib.h
00:01:41 Write boilerplate
00:03:16 Draw stuff on screen
00:05:20 Create build script
00:06:05 Running it
00:06:32 Where to find installation instructions
00:07:36 Adding gravity
00:09:14 Detecting floor collision
00:10:57 Making ball jump with spacebar
00:12:35 Making ball move left and right
00:13:43 Preventing jumping while in the air
00:15:58 Creating a platform to jump on
00:18:05 Detecting jump on platform
00:31:54 Fixing platform detection
00:36:37 Fixing ball dropoff from platform
00:42:16 Fixing jumping from below platform
00:44:45 Panning the camera to follow the ball
00:53:43 Creating more platforms
01:05:52 Outro

Пікірлер: 20

  • @christiansheard6603
    @christiansheard66038 ай бұрын

    Great tutorial watched whole video, superb content, easy to follow along. Thanks

  • @unconv

    @unconv

    8 ай бұрын

    Thank you very much! I'm glad it was helpful :) Make sure to watch the second part where I add graphics to it with AI

  • @tazdidulislam6061
    @tazdidulislam60614 ай бұрын

    Genius man!!! You have good skill to teach. Huge respect for you. Always make video about game development and give us resources for game development math or creating environment for a game...... It would be great, if you create a discord community or something to be connected with you and same kind of people to make our journey efficient.

  • @shashankdeep6392
    @shashankdeep63924 ай бұрын

    glad to learn this. I saw this is not always easy.debugging 😢 part was very epic to watch 😂sometimes chatgpt, sometimes library itself. All the way I liked it. Please continue 😊

  • @grimvian
    @grimvian3 ай бұрын

    Almost the way I like it, Linux, C and Raylib and no background music - thanks! I'm using CodeBlocks and not because it's is better, but independent and is working well even with debugging. As a middle level C and Raylib user, I think you gave a really good insight of making code in C and Raylib and debugging. I often save a lots of time using ChatGPT to understand Raylib, but ChatGPT can also easily make very strange code, that makes no sense to me, C or Raylib. Now I use ChatGPT to make a boilerplate and change the code, so it's usable for my projects. I have almost finished a small relational database, 2000 lines of code and 11 files, using Raylib as a graphical interface. The text editing part was tough, but works very well now.

  • @JohnLoida
    @JohnLoida4 ай бұрын

    Love this video!! Thanks a lot, it really feels like I'm learning with someone, definitely helped

  • @aminesakoute6011
    @aminesakoute6011 Жыл бұрын

    Congrats ! Hope you make more games/videos !

  • @zararkhan6360
    @zararkhan63607 ай бұрын

    Must Needed Tutorial. Thank you so Much

  • @CfopJitesh
    @CfopJitesh2 ай бұрын

    FIxing collision dectection part is too quick. pls make vid on it again.

  • @DenisTrebushnikov
    @DenisTrebushnikov9 ай бұрын

    Please, continue. This material is super interesting because I see not the fast scripting game by some good working code, but the process of thinking and solving current issues that much more relevant and appropriate to studying programming.

  • @unconv

    @unconv

    9 ай бұрын

    Thank you. I'll do more :)

  • @muadrico
    @muadrico10 ай бұрын

    Very cool video! I would like to see more episodes. 😊

  • @unconv

    @unconv

    9 ай бұрын

    A new episode coming soon :)

  • @tommyb2467
    @tommyb24674 ай бұрын

    Thank you so much, programing this was fun and i learned alot :D

  • @ixsencer4937
    @ixsencer493711 ай бұрын

    hi sir this project link 404 not found. can you reload link

  • @unconv

    @unconv

    11 ай бұрын

    I pushed the repo on GitHub now :)

  • @ameerachannel2539
    @ameerachannel25392 ай бұрын

    Its really hard to make game without game engine. You can only make game for one operating system and need code in other programming language to port it in other operating system.

  • @Skiggles
    @Skiggles7 ай бұрын

    I don't really believe your "I'm a noob" act but the video was somewhat entertaining. Just in case you really are a noob, I would strongly recommend reading the raylib cheatsheet or reviewing the examples on their website instead of searching the header file.

  • @unconv

    @unconv

    7 ай бұрын

    Thanks, but isn't the cheatsheet just a portion of the header file? I've been programming for around 20 years, but mostly in PHP. I made my first C program 8 months ago and this video is my first time using Raylib. I mean I built the game off camera first the previous day, but before that I had just watched Tsoding using Raylib. Anyway, thanks for the comment!

  • @Skiggles

    @Skiggles

    6 ай бұрын

    @@unconv I stand corrected then. Regarding the cheatsheet, it is a list of functions organized by module along with comments that briefly describe the usage of each. The examples are great because you can not only see the source code, but you can interact with those examples directly as they are embedded on the page as webgl programs.

Келесі