Implementing game saves in my custom engine (LIVE GAMEDEV)
Ғылым және технология
welcome to stream today we will write the code (stream starts at 4:50)
TWITTER: / jdah__
GITHUB: github.com/jdah
EDITOR: NeoVim
VIMRC: gist.github.com/jdah/4b4d98c2...
THEME: gruvbox
RESOURCES:
cppreference.com/
learnopengl.com
opengl-tutorial.org
shadertoy.com
stackoverflow.com
Пікірлер: 90
Dude, you can't be that good looking and that smart at the same time, that's illegal
@sp34277
Жыл бұрын
i was literally thinking the same thing the whole time
Hey. I think a video on describing your journey of learning/working in programming could be really interesting! :)
Stream starts: 4:52
@Blue-Maned_Hawk
Жыл бұрын
Thanks!
@nikita_x44
Жыл бұрын
thx
I barely know C but dude deserves a like for how hot he is.
You actually inspired me a lot. Now I'm..... web-developer
@cipher9476
Жыл бұрын
@Fomalhaut yeah, sounds stupid, coz he's c++ developer
@cipher9476
Жыл бұрын
@Fomalhaut yep
@kenamreemas3295
Жыл бұрын
Lol.. you went reverse
@martbarnav1787
Жыл бұрын
Everyone starts somewhere. As long as you don't stay with javascript you have good chances of becoming a good programmer.
@wolvAUS
Жыл бұрын
Contrary to what armchair programmers say, there’s nothing wrong with being a web developer.
1:16:00 I love that one person said the font size wasn't stream friendly so he immediately zoomed in
while (starting_soon){ wait(); }
This channel always reminds me to learn C and C++ someday
@sshah8
Жыл бұрын
does he use c++?
@rushsiteb
Жыл бұрын
@@sshah8 he is using c++ for this project
What's you background music from? I'm so calmed by it, you always choose very complementary ones
This was super rad!
what font are you using in nvim?
Nohomo but you are handsome as fk
@martbarnav1787
Жыл бұрын
Which is extremely rare for programmers
@sunflower7874
Жыл бұрын
@@martbarnav1787 Dang dude
I never saw or heard it answered in the video when I watched it, but you can put std::ios::binary or something like that in the stream constructor (e.g. std::fstream strm("test.txt", std::ios::in | std::ios::out | std::ios::binary) ) the stream, wether it be stringstream or fstream so that it does binary, otherwise it it's write functions and read functions will stop at the first sign of a string terminator, hope this helps!
@SweetPotatoTim
Жыл бұрын
Also something to mention is that if you want to create a file that doesn't exist you can't pass in std::ios::in because when it tries to read the file and it doesn't exist it fails, but just specifying std::ios::out and std::ios::binary will create it if it doesn't exist. There's also a very handy C++ library that can check for directories, delete files and stuff and much more
@SweetPotatoTim
Жыл бұрын
Also, a C++ class has operator overload, same as a struct, just switched the public and private operators :)
rip techno
@digitalidoit
Жыл бұрын
this isn't even about him, shut up
Why do you have a separate utils/std.hpp cant you just use iostream?
On the other side of the world we were coding web crap because it pays the bills. I can see no one is asking the right questions, so lets see if I get a response: 1: Can you show your dev hardware setup (i.e., your real desktop)? 2: What is your day job. 3: How long? (have you been doing this)
@arial_01
Жыл бұрын
Well for question number 1 he uses a old 2018 macbook air for his desktop, and he answers number 3 2:49:28. Idk about question 2 tho.
@ndotl
Жыл бұрын
@@arial_01 Thanks for the update. I am trying to move in this direction just as a hobby, but the day job (web dev) gets in the way. Right now I am relearning C++ as I hate having to google the simple stuff.
@uxoy
Жыл бұрын
@@ndotl Do you mind sharing where you've started in regards to learning this?
@ndotl
Жыл бұрын
@@uxoy First reply was 'lost'. Let me be brief. I have a degree, but you don't need one. Find top Java and webdev (html+css+javascript) books on your favorite online book store. To be competent you need to study and write code for about one year.
Maybe worth to make serialize/deserialize methods being static instead of creating temporary object
"Uh, the code is the documentation" while he stares at the camera what a chad (respectfully)
Saw a comment: "BRO CHILL MY GIRL IS ON THIS PLATFORM", i just died i swear!!
Hello! I’d be very grateful if you share your neovim config files. Thank you
Rewatching this after he created a reflection lib for this to work is so funny
Ohhhh I know this software! It's Hollywood, right?
I might be imagining it, but it sounds like there's a very light static whenever you talk. A fix might be as easy as adding a noise suppression/gate filter on OBS or similar apps.
@The_Codemaster144k
Жыл бұрын
I think he has a setting where the mic only records when he’s talking because he probably has a lot of background noise
Can we get an updated vimrc please? Cheers!
@juanlosauro
Жыл бұрын
His vim is so clean
@halfbakedc00kie
Жыл бұрын
+1 for this
@jdh
Жыл бұрын
yes you can! github.com/jdah/dotfiles
@DaNinjasDen
Жыл бұрын
@@jdh Fantastic, thanks!
@user-yc9rp2jg1s
Жыл бұрын
@@jdh Does Ubuntu works? I serached a lot on google, but still have no idea what is alacritty, lua and vimscript. I'm new 😥
I hereby come out as a brave sweden in these swedeophobic waters. Stay strong my fellow swedelandians!
This kind of stuff is crazy. OO, templates, everything scattered all over the heap. My take: a single allocated memory arena for everything. Write that one thing to disk. Done. Simple. 10 minutes of work.
@jdh Morrowind is such a great game. I grew up playing it.
Intuitively, I would probably implement the serialization using a Visitor pattern to help avoid type explosion, and the output stream implementation would logically use a Decorator pattern. You kind of get around the type explosion problem by relying on macros, which isn't necessary if you're using the right patterns.
@alexander53
Жыл бұрын
What do you mean by type explosion?
You're so f* handsome nohomo
@pedroduran8927
Жыл бұрын
my pepe is ... you know
yea
You are so fine 😭😭
Are you a morning, afternoon, or night streamer?
selfhosted gitea ftw. also vs2022 is great on windows, but i only use xcode or neovim on macos. also macros are probably frowned upon for stuff where the arguments behave weird and stuff, but macros are the superior way to do most things in c
@hkey_current_user
6 ай бұрын
only issue is with all versions of visual studio on windows, it is slow as my grandmother with alzheimers
jdh, WHO ARE YOU?
You look like Robert Pattinson
Fstream can write binary data ;) std::iOS::binary
169k Subs lmaoooo
I knew you were a java developer when u started to write outpustream's non sense
if video_play = false then starting_soon = false; else starting_soon = true;
How old are you??
@TheDjBobie
Жыл бұрын
2137 light years
@inactivechannel6227
Жыл бұрын
43 A.D
@lycan2494
Жыл бұрын
Cringe replies
@nicolaimatthew5928
Жыл бұрын
hes atleast 6
@zaspalia
Жыл бұрын
Old enough ;)
nohomo
I think you should try to make an engine in Rust. I've found Rust to be easier to make games in than C++. The docs for the wgpu crate are very nice.
@Blue-Maned_Hawk
Жыл бұрын
Rust has some niceties in it (the procedural macros are one that i particularly like), but it's too restrictive in what you can do, the standard library is extremely bloated, there's too many ways to do things (and in a bad way, not a Perl-like way), and it locks you in to a specific ecosystem with a really hostile community. It's definitely better than C++, but that's a bar that you'd need to dig under to not surpass, and it's certainly worse than sensible languages like C or Perl.
@hardknockscoc
Жыл бұрын
@@Blue-Maned_Hawk I don't think it's that restrictive.
@hardknockscoc
Жыл бұрын
@@Blue-Maned_Hawk It's certainly more restrictive than C but I'd say it makes up for that by having all the high-level features that C doesn't while also allowing low level pointer manipulation with unsafe.
@Blue-Maned_Hawk
Жыл бұрын
@@hardknockscoc, i think i'd still much prefer the sheer raw power that C offers.
@hardknockscoc
Жыл бұрын
@@Blue-Maned_Hawk For games, I think you can get along with Rust just fine. If you want to do something like an OS, then C might be better because you won't have to reimplement libc. Hardware is generally just made with C ABIs in mind I think.
12th
Second
third
first