C++ Game Programmer Tries ZIG for the first time.

preview_player
Показать описание
Zig is a programming language meant to replace C. It is probably also a good language for making games. I usually write games in C++ but let's also try Zig. Is Zig a good programming language after all?

#zig #programming #gameprogramming #peogramminglanguages

Discord server:

Check out my steam Game:

If you want to make games in C++ check out this video:

Source code:

Music: Evan King - Spicy Boom
Рекомендации по теме
Комментарии
Автор

that intro is pure gold! "Where is my static reflection!?" 😂

williamclark
Автор

"i used my brain to come up with a project idea..." 😂
And thanks for sharing your experiences. I don't generally use C/C++ (nor Zig) but I've definitely learned and been entertained from your channel/discord. Have a good day 🕹️

HeartOfLightning
Автор

Zig has been slowly growing on me. My biggest gripe from a learning perspective is the LSP they ship is a bit lackluster, and seems a bit slower than most.

ForeverZer
Автор

Really good video!
I really liked how yoi showed the source code and didnt hide the relevant bits

harshitjoshi
Автор

for me zig is like the luau none knew about but always needed

hl_l
Автор

i love zig. once I got up and running in it, it just feels bad to use anything else. Using to build a game rn, and I'm having a great time

melndev
Автор

Try Odin next. It is way way simpler than Zig design-wise but still gives you a lot of the features you want. I do all of my gamedev in Odin now after using C before.

psstar
Автор

Do make a comparison with Odin and C3 as well.

christofferlerno
Автор

I don't think syntax should be a deciding factor eitheir, sure it's different, but at least it's consistent, simple and readable, you learn how to express this and that and within a week you never even think about this stuff ever again, Zig took me less time to learn than C++, despite me having 3y of background in C, and despite being an absolute nerd of C, I've read countless books on everything in C and yet C++ took me like a year to be comfortable in it while I might have picked Zig in maybe a week or so around 0.11

TheMachina
Автор

I don't really like the syntax and passing allocators around, so Nim or D (in betterC mode) feels more pleasant to code in for me.

leffivanov
Автор

Zig is not overly complicated as Rust, is FAST asf and y can target like almost any machine you want. GG Zig

tudy
Автор

I felt that "Where is my static reflection?" :)) It's 2024 and people still have to use weird hacks, codegen or boilerplate-as-macros for that. Apparently it's been proposed for C++ 26

blacklistnr
Автор

a lot of actual zig hype... sounds like there's finally a real winner in the c successor race?

LOC-Ness
Автор

As a Python and Bash programmer, I don't understand a single thing in Zig 😂

dionnix
Автор

Idk zig looks kinda sus, so it looks like we have a imposter among us 👀

KelvinatorIsTaken
Автор

You fool. You fipped the pipe sprite vertically but not horizontally and now you have an inconsistent light source, a cataclysmic fumble

noid
Автор

What are you using build your game on Steam?

kernelpanic
Автор

if you like zig may be you should try jai. I heard that is nice language

TheSilverRat
Автор

Zig is giving benchmark results much faster than even Rust

ozanyasindogan
Автор

That's gave absolutely zero details!

Chiramisudo
join shbcf.ru