MENU

Fun & Interesting

Start Your Own 2D RPG With Raylib | TUTORIAL

Erik Yuzwa 8,581 12 months ago
Video Not Working? Fix It Now

🎮 Dive into the exciting world of game development with this step-by-step tutorial on creating your own 2D RPG using Raylib! Whether you're a seasoned developer or just starting out, this comprehensive guide will walk you through the process of bringing your imagination to life. In this video, we'll cover: - Building a 2D grid of a "game world" - Creating a 2D Camera targeting the Player - Moving the Player by responding to the Keyboard - Zoom the Camera in/out with the Mouse Wheel - Creating a 2D grid of a "dungeon" - Adding Entities to interact with in your 2d world - Rogue Combat 🚀 Ready to embark on your game development journey? Hit play now and let's bring your 2D RPG to life together! 👉👉Grab the source (on github): https://github.com/erikyuzwa/raylib-2d-rpg-tutorial 🔗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 - 7DRL 2024 Gamejam: https://itch.io/jam/7drl-challenge-2024 - Micro-Roguelike Assets: https://www.kenney.nl/assets/micro-roguelike - Soundtracks: https://alkakrab.itch.io/fantasy-rpg-soundtrack-music - Ultima IV Controls: https://strategywiki.org/wiki/Ultima_IV:_Quest_of_the_Avatar/Controls 👋🏻Connect with me Twitter: https://www.twitter.com/eyuzwa 🎨 Timestamps 0:00:00 - Introduction 0:00:30 - Demo of bare bones RPG 0:02:25 - Getting Started 0:04:04 - Console App Project Start 0:04:40 - The Game Lifecycle Functions 0:06:47 - First Run of Game 0:07:25 - Working with a TileMap 0:07:52 - Some TileMap Math 0:12:42 - Loading a TileMap Image into Texture 0:13:08 - a world of Tiles! 0:14:00 - a Tile struct 0:15:12 - Rendering the TileMap 0:18:45 - Working with Camera2D 0:20:11 - Creating an "Ultima" Camera 0:22:06 - Using MouseWheel to Zoom 0:25:09 - Display Stats UI 0:28:21 - The Player Entity 0:32:14 - Our own DrawTile function 0:34:46 - Player Movement from Keyboard 0:36:57 - Drawing Different Tiles 0:40:27 - Adding a Dungeon Map 0:44:13 - Switching Between Dungeon and World 0:48:36 - Create an Orc Entity 0:50:33 - A Touch of Combat 0:57:34 - Tracking Player Experience 0:59:53 - Spawning a Treasure Chest 1:04:51 - Adding Music and Sound Effects! 1:13:20 - Drawing Combat Text 1:18:45 - 7DRL 2024 and Wrapping Up #gamedev #raylib #rpg

Comment