alesan99 / chicken_society

"Become a chicken not a nugget". A full online multiplayer game.
https://alesan99.github.io/chicken_society/
3 stars 0 forks source link

Items: Only load items that are being used in area. #74

Open alesan99 opened 8 months ago

alesan99 commented 8 months ago

In the future, maybe load the items only when they are asked for? Like only load items being worn by chickens on screen, items in your inventory, and items being sold by NPCs.

Visiting a new area creates a list of every new item that is needed, and every old item that is no longer needed.

Item usage should still by async. As in the game shouldn't crash if a new player joins that is wearing an item that hasn't finished loading yet.