Adding NPCs to my C Raylib Game | First Game in C Part 3

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • In today's video I continue building my first ever game in C with Raylib. I add an enemy that shoots at the main character. All graphics in the game are generated with DALL-E 3
    GitHub: github.com/unconv/c-raylib-game
    #raylib #gamedev
    Support: buymeacoffee.com/unconv
    Consultations: www.buymeacoffee.com/unconv/e...
    Memberships: www.buymeacoffee.com/unconv/m...
    Part 1: • Newbie 2D Game Develop...
    Part 2: • 2D Game in C with AI G...
    Part 3: • Adding NPCs to my C Ra... (this video)
    00:00 Intro & recap
    01:36 Plan
    02:21 Create enemy character
    08:04 Start coding
    10:40 Refactor character image loading
    16:49 Fixing FPS-independent game speed
    25:59 Adding support for multiple characters
    32:08 Enable separate jump keys for characters
    33:46 Make enemy walk automatically
    36:22 Change camera position
    37:50 Make enemy appear automatically
    43:09 Git commit
    44:13 Making enemy shoot
    01:10:44 Detecting bullet collision
    01:16:58 Making enemy shoot automatically
    01:19:55 Final game
    MUSIC:
    Epic Cyberpunk | Glory by Alex-Productions | onsound.eu/
    Music promoted by www.chosic.com/free-music/all/
    Creative Commons CC BY 3.0
    creativecommons.org/licenses/...
  • Věda a technologie

Komentáře • 8

  • @anfiiaidev
    @anfiiaidev Před 5 měsíci

    Damnn you nailed it can't imagine you could build a game. Keep it up I really love and learn from your videos

  • @SydneyApplebaum
    @SydneyApplebaum Před 5 měsíci

    very cool, thanks for making this!

  • @AeSoG_Youtube
    @AeSoG_Youtube Před 5 měsíci +1

    Add that the player has an gun and can shoot back, and add randomly spawing enemeys! also add that there is not only 1 enemey.

  • @billybofh2363
    @billybofh2363 Před 5 měsíci +1

    Looking at the collision detection and I was just thinking you could make the most expensive DIY game of all time - send every frame to GPT-vision and ask 'has a bullet hit me?' :) Other than that - possibly something like a 'wall of fire' that slowly creeps over the world from the left? Just to force the player to keep moving forward?

    • @unconv
      @unconv  Před 5 měsíci +3

      Might as well ask DALL-E to generate every frame based on the key presses 😂

  • @omicron8530
    @omicron8530 Před 4 měsíci

    Have you tried RTX chatbot?

  • @AndyFaber
    @AndyFaber Před 4 měsíci

    Where is part 2 with the graphics?

    • @unconv
      @unconv  Před 4 měsíci

      I just added links to the description :)