Creating a Scene Manager & Delta Time Variable | Coding a 2D Game Engine in Java #3 @GamesWithGabe
Creating a Scene Manager & Delta Time Variable | Coding a 2D Game Engine in Java #3  @GamesWithGabe
Uploaded April 2020 | Updated September 2026, 3 weeks ago
Join the Discord: discord.gg/4tHeAkxNg7

In this tutorial, I go over how to create a scene manager that will allow the game engine to switch between different "scenes", which are abstract objects that contain a game world. Next, we set up a delta time variable that can be used inside the scene manager, this delta time variable contains how much time has elapsed since the last frame. I then show how to use both of these concepts, by creating a transition from one scene to another by fading to black over 2 seconds.

Github: github.com/codingminecraft/MarioYoutube/commit/2eb415f03ed2b4d37d95ff4442863c889c27aa94
---------------------------------------------------------------------
Website: ambrosiogabe.github.io
Github: 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: gameenginebook.com
Game Physics Cookbook (Read this before the next physics book): amazon.com/Game-Physics-Cookbook-Gabor-Szauer/dp/1787123669
Game Physics (Ian Millington): amazon.com/Game-Physics-Engine-Development-Commercial-Grade/dp/0123819768
Game Programming Patterns (Free): gameprogrammingpatterns.com

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

Outro Music: bensound.com/royalty-free-music
Creating a Scene Manager & Delta Time Variable | Coding a 2D Game Engine in Java #3Rendering the First Character | Font Rendering in Java #2Mario Turtle AI | Coding a 2D Game Engine in Java #55Dictionaries | Python for Absolute Beginners #10Editor Camera Controls with Lerp | Coding a 2D Game Engine in Java #33Alpha Blending and Z-Indexing | Coding a 2D Game Engine in Java #16What is Path??Translating 10,000 Lines of Java Code to C++ Part 1 | Cocoa Engine Devlog #9Particle Physics and Forces | Coding a 2D Physics Engine in Java #13Flipping Gravity PromoMouse Screen Coordinates to Game Viewport Coordinates  | Coding a 2D Game Engine in Java #30I Coded a Video Editor (and it kind of sucks)
GamesWithGabe |

Creating a Scene Manager & Delta Time Variable | Coding a 2D Game Engine in Java #3

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER