Making an inventory for my indie survival tower defense game | Elixir Punk Devlog [1]

Ойындар

In this week's devlog, I make the inventory system for Elixir Punk, but not without first wanting to douse my keyboard in oil and light it on fire. I made a lot of mistakes trying to get fancy with optimization, but they backfired badly. In the end, the first solution I thought of turned out to be the best one.
Enjoy!

Пікірлер: 38

  • @greyshopleskin2315
    @greyshopleskin23152 ай бұрын

    I like zig gamedec content. I hope you keep uploading:D

  • @mel0ndev

    @mel0ndev

    2 ай бұрын

    Thanks, that's the plan! New videos every two weeks or so.

  • @sittingnome
    @sittingnome2 ай бұрын

    fellow zig + rl chad spotted The second hotbar looked far better to me. looking forward to future devlogs

  • @mel0ndev

    @mel0ndev

    2 ай бұрын

    ayyy, love to see it. Zig + rl super comfy

  • @pietraderdetective8953
    @pietraderdetective895319 күн бұрын

    Been looking for a Zig gamedev channel...I'm happy to find this one! Liked and subbed!

  • @mel0ndev

    @mel0ndev

    19 күн бұрын

    Awesome, glad to have you. If you have suggestions for cool zig things to try, lmk, I am always looking for new ways to do things in the language.

  • @doce3609
    @doce36092 ай бұрын

    Love the video. Amazing that you are using Zig. First one I have come across that is doing that in gamedev. Keep it up 👍

  • @mel0ndev

    @mel0ndev

    2 ай бұрын

    Thanks! It's really a matter of time before the language catches on I think. I am surprised there aren't more videos of people actually using it, it's by far my favorite language right now.

  • @doce3609

    @doce3609

    2 ай бұрын

    @@mel0ndev Yeah it's an amazing language. But also still in very early 0. versions. afaik only Bun uses it in Production right now

  • @mel0ndev

    @mel0ndev

    2 ай бұрын

    ah yes, I have to upgrade to the stable 0.12 version soon. Seeing bun send it into production was what made me say fuck it and not worry about the breaking changes. API has been pretty stable the last few versions, hopefully we stay that way!

  • @OxAA00

    @OxAA00

    2 ай бұрын

    @@doce3609 Tigerbeetle and Uber also are using it. Especially Tigerbeetle is super interesting because the source code for their database is open source.

  • @OxAA00

    @OxAA00

    2 ай бұрын

    @@mel0ndev I'm actually working on some videos for my own little raylib engine. I was actually super happy to see other people create videos. This kind of proves that I wasn't delusional with betting on Zig. Cool video btw and I'm looking forward for more content. :)

  • @Warmatx68
    @Warmatx682 ай бұрын

    Nice

  • @mel0ndev

    @mel0ndev

    2 ай бұрын

    thanks!

  • @hectormejia499
    @hectormejia4992 ай бұрын

    love it! was hoping to find some zig game dev on youtube, did not disappoint. Are you thinking of releasing the source? or will this be a commercial game? either way, best of luck!

  • @mel0ndev

    @mel0ndev

    2 ай бұрын

    I don't think you want the source in it's current state lol, it's a mess. It is planned to be a commercial release atm, but in the event that that doesn't happen, I will make the repo public. and thank you!

  • @hectormejia499

    @hectormejia499

    2 ай бұрын

    @@mel0ndev makes total sense, best of luck, can't wait to see the progress! :D

  • @NoRightsProductions
    @NoRightsProductions17 күн бұрын

    "Over engineering from the start" reminded me of the guy who wrote an entire operating system to run Tetris, custom CPU to run Pong built his own graphics card, and remade Minecraft several times. Apparently he streamed making his first game in Zig kzread.info/dash/bejne/k56Wu7ugkqe-d84.html

  • @mel0ndev

    @mel0ndev

    16 күн бұрын

    haha I love jdh. big fan of that guy

  • @user-xi9py8es1s
    @user-xi9py8es1s11 күн бұрын

    dude I do the same thing you do every time. I go to implement a feature and try to over complicate or over optimize it (I try to use one for loop instead of two for a three length array, as if it matters) , and then it takes a whole day instead of an hour to implement.

  • @mel0ndev

    @mel0ndev

    11 күн бұрын

    it's such a time sink. Unless you've implemented it before or know some base level optimizations (A algo is better than B) it's better just to do it the simplest way you can and then optimize later. Sometimes you just gotta relearn that lesson tho lol.

  • @gluax7553
    @gluax755317 күн бұрын

    HashMaps are unordered by default, at least in a lot of languages, unless you specifically use an OrderedMap of some kind. At least if I’m understanding what you are saying about positioning.

  • @mel0ndev

    @mel0ndev

    16 күн бұрын

    That was indeed the issue. I don't know why I assumed they were ordered by default. I had used iterators in the past, but never needed to preserve order with them. I've since learned there is an ArrayHashMap in the zig std that would have been a better candidate, but at this point I'm fine with a fixed array. Additional items can be stored in chests, or if I want the player to be able to carry things, something like a backpack or looting bag.

  • @StarStuff-b5m
    @StarStuff-b5m23 күн бұрын

    Are you going to post VODs ? Thanks!

  • @mel0ndev

    @mel0ndev

    22 күн бұрын

    I have been toying around with the idea of livestreaming, but backend work is quite a drag (at least I think so) to watch, so once we get stuck into some proper gameplay stuff, I may. what are you interested in seeing in VODs?

  • @StarStuff-b5m

    @StarStuff-b5m

    21 күн бұрын

    @@mel0ndev Hey ! Well, I'd like to see the development itself, how is your thinking and coding when approaching a problem. And see how you use the language to solve this problems. It's good to expand my own views on how to approach a problem and how to proper use zig from someone that has been tinkering with it. I think in general it is good to learn.

  • @mel0ndev

    @mel0ndev

    21 күн бұрын

    @@StarStuff-b5m that is good to know, thanks! When I decide to stream, I will put up a post in the community tab. As I said, I do plan to eventually, the only question is really when, but I agree that it is helpful to see how other people solve problems, especially if you're learning a new language

  • @StarStuff-b5m

    @StarStuff-b5m

    18 күн бұрын

    ​@@mel0ndev Awesome. It would be good if you record it and keep the vods here. I would suggest to do a playlist. And would be even better to do a entire project recording from day 1. Anyway I don't know if it is what you are thinking to do, but certainly it would be awesome to watch. (Y)​

  • @salim444
    @salim444Ай бұрын

    nice content. also great pp, could I get a link

  • @mel0ndev

    @mel0ndev

    Ай бұрын

    🤣

  • @markos9644
    @markos96442 ай бұрын

    without outlines better imo

  • @mel0ndev

    @mel0ndev

    2 ай бұрын

    I gotta agree. Did a lot of testing with both, without outlines fits the look and feel way better

  • @doce3609

    @doce3609

    2 ай бұрын

    +1

Келесі