Scene & Scene Manager // Zig Game Engine Series

Опубликовано: 24 Май 2026
на канале: Pokelego Dev
378
27

Welcome back to the Game Engine Series! In this video we deep dive into Scenes in the game engine. I go over for the first time how dynamic dispatch with custom VTables works in Zig and how we can leverage that to allow game developers to write their own Scene structs which plug into the game engine

📚 Topics Covered:
Fixing LSP Intellisense
Building out the Scene struct with a custom VTable
Building out our scene manager
Refactoring our Application struct to control the main event loop
Writing our first game scene and plugging into the game engine

Come watch me stream engine development live on Twitch   / pokelego_dev  

🔗 Links:
Runtime Repo ► https://github.com/Zephyr-Engine/zeph...
Sandbox Repo ► https://github.com/Zephyr-Engine/zeph...
Discord ►   / discord  
X ► https://x.com/pokelego_dev
Previous Video ►    • Time + Sandbox App // Zig Game Engine Series  
Next Episode ►    • Upgrading to Zig 0.16 & Adding Unit Tests ...  

🖥️ Equipment:
Shure MV6 Microphone: https://amzn.to/49rRfre
Logitech G903: https://amzn.to/4pxNera
32" 4K Monitor: https://amzn.to/4jDLbka
Lightbar: https://amzn.to/49xTeKA
Elgato Camlink: https://amzn.to/4jU106B
1TB SSD: https://amzn.to/4jxPFsp
Camera Tripod: https://amzn.to/3Ldr2Vs
Camera SSD: https://amzn.to/3NDKpYk

0:00 Intro
3:50 Fixing Intelisense
6:49 Scene Struct
16:58 Scene Manager Struct
23:58 Refactoring Application Struct
27:56 Writing Game Scene
37:52 Outro

Attributions:
https://www.flaticon.com/free-icons/s...

Music I use: Bensound
License code: 8LDV4HESGZFJUL96
Artist: : Lunar Years

#GameDev #Zig #GameEngine #Programming