Adding NPCs to my C Raylib Game | First Game in C Part 3
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
Damnn you nailed it can't imagine you could build a game. Keep it up I really love and learn from your videos
very cool, thanks for making this!
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.
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?
Might as well ask DALL-E to generate every frame based on the key presses 😂
Have you tried RTX chatbot?
Where is part 2 with the graphics?
I just added links to the description :)