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.
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.