It would be useful to add support to the loader for automatically splitting up sprite/tile sheets into an array of sprite values. Providing all sprites as a single image and then splitting is standard procedure for most engines, and it's way more efficient when maintaining assets.
This would need a new item type for the loader syntax, and may require bringing in some image processing library to do the necessary manipulation, though this would compromise my goal so far of zero dependencies. I would guess this may be tricky to do manually in pure javascript as the available tools have some distinct footguns. Any advice would be recommended.
It would be useful to add support to the loader for automatically splitting up sprite/tile sheets into an array of sprite values. Providing all sprites as a single image and then splitting is standard procedure for most engines, and it's way more efficient when maintaining assets.
This would need a new item type for the loader syntax, and may require bringing in some image processing library to do the necessary manipulation, though this would compromise my goal so far of zero dependencies. I would guess this may be tricky to do manually in pure javascript as the available tools have some distinct footguns. Any advice would be recommended.