https://github.com/subsoap/imagebatch
Download images and put them into a single texture to reduce drawcalls in Defold
https://github.com/subsoap/imagebatch
defold defold-game-engine defold-module
Last synced: 3 months ago
JSON representation
Download images and put them into a single texture to reduce drawcalls in Defold
- Host: GitHub
- URL: https://github.com/subsoap/imagebatch
- Owner: subsoap
- License: cc0-1.0
- Created: 2018-07-12T15:28:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-13T19:09:00.000Z (almost 8 years ago)
- Last Synced: 2025-05-10T05:52:51.690Z (about 1 year ago)
- Topics: defold, defold-game-engine, defold-module
- Language: Lua
- Size: 729 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ImageBatch
Download images and put them into a single texture to reduce drawcalls in Defold
- Supports PNG and JPG filetypes
- RGB only for now (will add RGBA support later)
- The included sample tilesource is only 40 slots, you can add more
- The example is 10x10 tilesource with a size of 100x100 for each tile
- You must manually set the properties of the image_controller.script to whatever sizes you want
- You can send messages to the image_controller to load new slots, you can overwrite slots, it's up to you to manage slots
- Image caching is forced right now (will be an option later)
- You can take the code out and use if how you want
- Edge extrusion support will be added later
- More other features will be added later