Welcome back to the Game Engine Series! In this video we build on the event system we built from last episode and created an entire Input system. The input system is a critical system in a game engine as it's what's game developer use to be able to get things like keyboard and mouse input. I also show one of the best way's to do singleton's in Zig through the standard libraries "once" function. With "once" we don't need to worry about the initialization of the struct, it's all handled for us in a thread-safe/atomic way.
📚 Topics Covered:
Using our event system
Building out an input system
Singletons in Zig
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 ► • Input System // Zig Game Engine Series
Next Episode ► • Scene & Scene Manager // Zig Game Engine S...
🖥️ 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:19 Time
8:28 Sandbox App
22:04 Outro
Attributions:
https://www.flaticon.com/free-icon/cl...
https://www.flaticon.com/free-icon/sa...
Music I use: Bensound
License code: 8LDV4HESGZFJUL96
Artist: : Lunar Years
#GameDev #Zig #GameEngine #Programming