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

Published: 01 December 2021
on channel: GamesWithGabe
96,792
4.7k

Join the Discord:   / discord  
Follow me on Twitch:   / 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/Mi...

Linking GLFW: https://learnopengl.com/Getting-start...
GLFW Hints: https://www.glfw.org/docs/3.3/window_...
GLFW SetKeyCallback: https://www.glfw.org/docs/3.3/input_g...

My Example
Example Code (C++): https://github.com/codingminecraft/Mi...

Want to see your code as an example? Send me a link at [email protected] 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/Mine...
More C++: https://github.com/PixelRifts/mclone/...

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-C...
Game Physics (Ian Millington): https://www.amazon.com/Game-Physics-E...
Game Programming Patterns (Free): https://gameprogrammingpatterns.com/

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

My Recommended Java Books:
Data Structures/Algorithms: https://www.amazon.com/Data-Structure...
LWJGL (Free, but I haven't read this thoroughly): https://lwjglgamedev.gitbooks.io/3d-g...


Watch video Definitive Guide to Creating a Window | How to Code Minecraft Ep. 1 online without registration, duration hours minute second in high quality. This video was added by user GamesWithGabe 01 December 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 96,792 once and liked it 4.7 thousand people.