{"repo":"karl-zylinski/atlas-builder","free":true,"listed":false,"github":"https://github.com/karl-zylinski/atlas-builder","clone":"git clone https://github.com/karl-zylinski/atlas-builder.git","description":"Atlas builder for Odin games with aseprite file format support","language":"Odin","stars":97,"topics":["gamedev","odin"],"license":"Zlib","category":"game-templates","readme_excerpt":"Atlas Builder for Odin games This is a program that can generate a texture based on a bunch of other textures. This bigger texture is called an atlas. Using an atlas can make your game's rendering code faster since the number of draw calls can be reduced. See the example folder for a sample program that generates and uses an atlas. The example program looks like this: Uses aseprite loader by blob1807: https://github.com/blob1807/odin-aseprite Overview This atlas builder looks into a 'textures' folder for pngs, ase and aseprite files and makes an atlas from those. It outputs both atlas.png and atlas.odin . The odin file you compile as part of your game. It contains metadata about where in the atlas the textures ended up. Animated aseprite files are supported, animations get their own metadata in atlas.odin . The builder can load a font and bake characters into the atlas. The atlas builder can also split up tilesets and fonts and splat those out into the atlas. It detects if a texture is a tileset by checking if the name starts with tileset . A big benefit with using an atlas is that you can drastically lower the number of draw calls due to everything being in a single texture. Showcase & demo video: https://www.youtube.com/watch?v=u8Kt0Td76zI Dependencies The generator itself only uses core and vendor libs, plus an aseprite package by blob1807, which is included. atlas.odin uses the type Rect which defines a rectangle. Make sure you define such a type in the package where you ","default_branch":null,"files":null,"tree":[],"storefront":"/r/karl-zylinski","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/karl-zylinski/atlas-builder/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}