Definitive Guide to Creating a Window | How to Code Minecraft Ep. 1

Channel:
Subscribers:
59,400
Published on ● Video Link: https://www.youtube.com/watch?v=HhH_9DnMBgw



Category:
Guide
Duration: 12:14
98,903 views
4,831


Join the Discord: https://discord.gg/4tHeAkxNg7
Follow me on Twitch: https://www.twitch.tv/gameswthgabe

In this episode I describe how the process of creating a window works. I go through the required libraries for initializing a window and OpenGL, and show how you could create a main game loop. I also describe what this series will cover, roughly in the order I will cover it. This is the first episode in the how to code Minecraft series.

Challenges: https://github.com/codingminecraft/MinecraftCloneForYoutube/tree/master/Challenges

Linking GLFW: https://learnopengl.com/Getting-started/Creating-a-window
GLFW Hints: https://www.glfw.org/docs/3.3/window_guide.html#window_hints
GLFW SetKeyCallback: https://www.glfw.org/docs/3.3/input_guide.html#input_keyboard

My Example
Example Code (C++): https://github.com/codingminecraft/MinecraftCloneForYoutube/tree/d4d7092e811e5d233297fb4f5b7ecc383743890e

Want to see your code as an example? Send me a link at gamesbygabe1@gmail.com and I'll review your code. If it sets a good example and completes all of the challenges, I'll link your code here as well. I would be especially grateful if you provide code samples in other languages like C#, Java, C, or Rust :)

Other example code:
Modern C++: https://github.com/JonathanHiggs/MinecraftCloneForYoutube/tree/082dc900b585166a87209e3e5b7f270efdbf9f0d
More C++: https://github.com/PixelRifts/mclone/tree/5918c56f627f68976068929bd38a43f1c1b57f92

0:00 Intro
0:42 Disclaimer
1:14 Things You Should Know
2:52 What This Series Will Cover
3:20 Starting the Project
3:44 Deciding on a Graphics API
4:33 Window Management Libraries
4:51 Function Loaders
6:15 Linking GLFW
6:52 Creating the Window
9:07 Window Hints
9:31 Handling Input
10:41 Challenges
11:15 Challenges Written Out
11:43 Closing Comments

---------------------------------------------------------------------
Website: https://ambrosiogabe.github.io/
Github: https://github.com/ambrosiogabe

Here are some books I recommend if you want to learn about game engine development more thoroughly. I do not profit off any of these sales, these are just some books that have helped me out :)

My Recommended Game Engine Books:
Game Engine Architecture: https://www.gameenginebook.com/
Game Physics Cookbook (Read this before the next physics book): https://www.amazon.com/Game-Physics-Cookbook-Gabor-Szauer/dp/1787123669
Game Physics (Ian Millington): https://www.amazon.com/Game-Physics-Engine-Development-Commercial-Grade/dp/0123819768
Game Programming Patterns (Free): https://gameprogrammingpatterns.com/

My Recommended Beginning Game Programming Books:
JavaScript Game Design: https://www.apress.com/gp/book/9781430247166

My Recommended Java Books:
Data Structures/Algorithms: https://www.amazon.com/Data-Structures-Algorithms-Java-6th-ebook/dp/B00JDRQF8C
LWJGL (Free, but I haven't read this thoroughly): https://lwjglgamedev.gitbooks.io/3d-game-development-with-lwjgl/content/







Tags:
gameswithgabe
games with gabe
minecraft
lwjgl3
how to code minecraft
c++
java
c#
glfw
glad
opengl
creating a window
how to make a window
coding minecraft
how to code a minecraft clone
how minecraft works
coding