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

  • @Locchiutto
    @Locchiutto Жыл бұрын

    Dude, you can't be that good looking and that smart at the same time, that's illegal

  • @sp34277

    @sp34277

    Жыл бұрын

    i was literally thinking the same thing the whole time

  • @diegovega3013
    @diegovega3013 Жыл бұрын

    Hey. I think a video on describing your journey of learning/working in programming could be really interesting! :)

  • @hachem.h
    @hachem.h Жыл бұрын

    Stream starts: 4:52

  • @Blue-Maned_Hawk

    @Blue-Maned_Hawk

    Жыл бұрын

    Thanks!

  • @nikita_x44

    @nikita_x44

    Жыл бұрын

    thx

  • @VinayKumar-vu3en
    @VinayKumar-vu3en Жыл бұрын

    I barely know C but dude deserves a like for how hot he is.

  • @cipher9476
    @cipher9476 Жыл бұрын

    You actually inspired me a lot. Now I'm..... web-developer

  • @cipher9476

    @cipher9476

    Жыл бұрын

    @Fomalhaut yeah, sounds stupid, coz he's c++ developer

  • @cipher9476

    @cipher9476

    Жыл бұрын

    @Fomalhaut yep

  • @kenamreemas3295

    @kenamreemas3295

    Жыл бұрын

    Lol.. you went reverse

  • @martbarnav1787

    @martbarnav1787

    Жыл бұрын

    Everyone starts somewhere. As long as you don't stay with javascript you have good chances of becoming a good programmer.

  • @wolvAUS

    @wolvAUS

    Жыл бұрын

    Contrary to what armchair programmers say, there’s nothing wrong with being a web developer.

  • @__8120
    @__8120 Жыл бұрын

    1:16:00 I love that one person said the font size wasn't stream friendly so he immediately zoomed in

  • @nerdicon4822
    @nerdicon4822 Жыл бұрын

    while (starting_soon){ wait(); }

  • @caspera3193
    @caspera3193 Жыл бұрын

    This channel always reminds me to learn C and C++ someday

  • @sshah8

    @sshah8

    Жыл бұрын

    does he use c++?

  • @rushsiteb

    @rushsiteb

    Жыл бұрын

    @@sshah8 he is using c++ for this project

  • @juliocezarsilva5979
    @juliocezarsilva5979 Жыл бұрын

    What's you background music from? I'm so calmed by it, you always choose very complementary ones

  • @klutch4198
    @klutch4198 Жыл бұрын

    This was super rad!

  • @TigrisPrime667
    @TigrisPrime667 Жыл бұрын

    what font are you using in nvim?

  • @petermuller608
    @petermuller608 Жыл бұрын

    Nohomo but you are handsome as fk

  • @martbarnav1787

    @martbarnav1787

    Жыл бұрын

    Which is extremely rare for programmers

  • @sunflower7874

    @sunflower7874

    Жыл бұрын

    @@martbarnav1787 Dang dude

  • @SweetPotatoTim
    @SweetPotatoTim Жыл бұрын

    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

    @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

    @SweetPotatoTim

    Жыл бұрын

    Also, a C++ class has operator overload, same as a struct, just switched the public and private operators :)

  • @flyingmusicnote
    @flyingmusicnote Жыл бұрын

    rip techno

  • @digitalidoit

    @digitalidoit

    Жыл бұрын

    this isn't even about him, shut up

  • @tolekpro7828
    @tolekpro7828 Жыл бұрын

    Why do you have a separate utils/std.hpp cant you just use iostream?

  • @ndotl
    @ndotl Жыл бұрын

    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

    @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

    @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

    @uxoy

    Жыл бұрын

    @@ndotl Do you mind sharing where you've started in regards to learning this?

  • @ndotl

    @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.

  • @macinm97
    @macinm97 Жыл бұрын

    Maybe worth to make serialize/deserialize methods being static instead of creating temporary object

  • @sergiofenoll7705
    @sergiofenoll7705 Жыл бұрын

    "Uh, the code is the documentation" while he stares at the camera what a chad (respectfully)

  • @lowlevelcodingch
    @lowlevelcodingch2 ай бұрын

    Saw a comment: "BRO CHILL MY GIRL IS ON THIS PLATFORM", i just died i swear!!

  • @aleksandrlis6574
    @aleksandrlis6574 Жыл бұрын

    Hello! I’d be very grateful if you share your neovim config files. Thank you

  • @duckonaut
    @duckonaut Жыл бұрын

    Rewatching this after he created a reflection lib for this to work is so funny

  • @kostis2849
    @kostis2849 Жыл бұрын

    Ohhhh I know this software! It's Hollywood, right?

  • @Xenosplitter
    @Xenosplitter Жыл бұрын

    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

    @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

  • @DaNinjasDen
    @DaNinjasDen Жыл бұрын

    Can we get an updated vimrc please? Cheers!

  • @juanlosauro

    @juanlosauro

    Жыл бұрын

    His vim is so clean

  • @halfbakedc00kie

    @halfbakedc00kie

    Жыл бұрын

    +1 for this

  • @jdh

    @jdh

    Жыл бұрын

    yes you can! github.com/jdah/dotfiles

  • @DaNinjasDen

    @DaNinjasDen

    Жыл бұрын

    @@jdh Fantastic, thanks!

  • @user-yc9rp2jg1s

    @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 😥

  • @keiidev
    @keiidev Жыл бұрын

    I hereby come out as a brave sweden in these swedeophobic waters. Stay strong my fellow swedelandians!

  • @RockTo11
    @RockTo11 Жыл бұрын

    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.

  • @ASW496
    @ASW496 Жыл бұрын

    @jdh Morrowind is such a great game. I grew up playing it.

  • @LimitedWard
    @LimitedWard Жыл бұрын

    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

    @alexander53

    Жыл бұрын

    What do you mean by type explosion?

  • @maquina6821
    @maquina6821 Жыл бұрын

    You're so f* handsome nohomo

  • @pedroduran8927

    @pedroduran8927

    Жыл бұрын

    my pepe is ... you know

  • @Boulders911
    @Boulders911 Жыл бұрын

    yea

  • @twinwassold
    @twinwassold Жыл бұрын

    You are so fine 😭😭

  • @IgnoreSolutions
    @IgnoreSolutions Жыл бұрын

    Are you a morning, afternoon, or night streamer?

  • @mobslicer1529
    @mobslicer1529 Жыл бұрын

    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

    @hkey_current_user

    6 ай бұрын

    only issue is with all versions of visual studio on windows, it is slow as my grandmother with alzheimers

  • @rev_match
    @rev_match Жыл бұрын

    jdh, WHO ARE YOU?

  • @DevNugget
    @DevNugget Жыл бұрын

    You look like Robert Pattinson

  • @GiveAcademy
    @GiveAcademy Жыл бұрын

    Fstream can write binary data ;) std::iOS::binary

  • @Prityarth
    @Prityarth Жыл бұрын

    169k Subs lmaoooo

  • @user-zq8bt6hv9k
    @user-zq8bt6hv9k Жыл бұрын

    I knew you were a java developer when u started to write outpustream's non sense

  • @FellaMegaOld
    @FellaMegaOld Жыл бұрын

    if video_play = false then starting_soon = false; else starting_soon = true;

  • @eliasmelesse1715
    @eliasmelesse1715 Жыл бұрын

    How old are you??

  • @TheDjBobie

    @TheDjBobie

    Жыл бұрын

    2137 light years

  • @inactivechannel6227

    @inactivechannel6227

    Жыл бұрын

    43 A.D

  • @lycan2494

    @lycan2494

    Жыл бұрын

    Cringe replies

  • @nicolaimatthew5928

    @nicolaimatthew5928

    Жыл бұрын

    hes atleast 6

  • @zaspalia

    @zaspalia

    Жыл бұрын

    Old enough ;)

  • @_loss_
    @_loss_ Жыл бұрын

    nohomo

  • @hardknockscoc
    @hardknockscoc Жыл бұрын

    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

    @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

    @hardknockscoc

    Жыл бұрын

    @@Blue-Maned_Hawk I don't think it's that restrictive.

  • @hardknockscoc

    @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

    @Blue-Maned_Hawk

    Жыл бұрын

    @@hardknockscoc, i think i'd still much prefer the sheer raw power that C offers.

  • @hardknockscoc

    @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.

  • @antonanton3136
    @antonanton3136 Жыл бұрын

    12th

  • @thomasamathew4058
    @thomasamathew4058 Жыл бұрын

    Second

  • @multiarray2320
    @multiarray2320 Жыл бұрын

    third

  • @pdlbackup
    @pdlbackup Жыл бұрын

    first

Келесі