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: Load all items in folders dynamically #68

Closed alesan99 closed 8 months ago

alesan99 commented 9 months ago

Instead of hardcoding the list of items in assets.js, ask the server the file structure of the assets folder so it knows what items to load.

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.

alesan99 commented 8 months ago

16ceb38f41da4304089c15323a51636e8aa06c3d