Timestamps:
00:53: Prerequisites
01:44: Setup Raylib
03:57: Setup our Project
07:06: Code time!
09:38: Loading and drawing a texture
12:50: Creating the player
22:02: Flipping the player's direction when it moves
25:19: Map loading
31:01: Fixing a mistake with the Makefile
32:20: Collisions
38:17: Making a better hitbox
42:43: Outro
Thanks for watching!
Hopefully you learned something new from this video! I'm excited to talk about a library that I've been tinkering with for the past few months. The Raylib community itself is a joy to be around, you should check them out if you can! https://www.raylib.com/
Tools to download before starting:
GCC (which comes with gcc and g++):
https://gcc.gnu.org/install/
- Supplementary video for installing GCC on Windows (because it's really hard for some reason):
https://www.youtube.com/watch?v=k6juv3mIr9o
Make:
https://gnuwin32.sourceforge.net/packages/make.htm
Git:
https://git-scm.com/downloads
Raylib wiki:
MacOS: https://github.com/raysan5/raylib/wiki/Working-on-macOS
Windows: https://github.com/raysan5/raylib/wiki/Working-on-Windows
Linux: https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux
If you're on Windows and finding that installing make and gcc is difficult, I recommend looking into a package manager. Chocolately (https://chocolatey.org/) is a good, popular option.
Source Code with more comments:
https://github.com/m1chaelwilliams/intro-to-raylib
Join my Discord:
https://discord.gg/s5KeJupxQw
Support me on Patreon:
https://patreon.com/codingwithsphere
Music from:
https://www.youtube.com/watch?v=udGvUx70Q3U&t=245s