11

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
[-] eRac@lemmings.world 8 points 8 months ago

If the items are standardized, all you need in the inventory is an item ID of some sort and a count. You then have an item DB that has name, icon, weight, etc for each item.

If you have random items, you need to store more properties, but you should keep the inventory structure as slim as you can.

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

GameDev

2764 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 1 year ago
MODERATORS