12

I was wondering if there were some good resources for the concepts of a FPS inventory. My current idea to to just have a JSON file with every item having a "name" "type" "weight" and "count" propertys. I was thinking this would have the added benefit of using a single list that can be used for multiple menus(ie: healthpacks menu, ammo menu, etc)

Are they different approaches or resources for FPS inventorys?

you are viewing a single comment's thread
view the rest of the comments
[-] DarkAri@lemmy.blahaj.zone 3 points 1 week ago

You would have to create a UI object for the container, and a array or list for the actual inventory objects, and then a way to sync this data to disk or to a save buffer to keep it updated.

[-] lilith267@lemmy.blahaj.zone 2 points 6 days ago* (last edited 6 days ago)

Oh wow did now expect a year and half old post to still be receiving comments LOL

Thank you for the input and I have already come a very long way in the hobby and this question almost seems silly now

[-] DarkAri@lemmy.blahaj.zone 2 points 5 days ago

Oh yeah I was exploring the subs, sorry about that.

this post was submitted on 03 Mar 2024
12 points (100.0% liked)

GameDev

3821 readers
1 users here now

A community about game development.

Rules:

More rules might follow if they become necessary; general rule is don't be a pain in the butt. Have fun! ♥

GameDev Telegram chat.

founded 2 years ago
MODERATORS