Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
What This Skill Does
Sprite sheets (texture atlases) pack multiple game assets into a single texture, cutting draw calls and memory overhead. Covers loading and animating sprite sheets in Rust with Macroquad and Bevy, and in Godot 4.x using both editor tools and GDScript. Includes guidance on creation tools, metadata formats, and best practices for mobile and web targets.
A single texture load with atlas metadata replaces dozens of individual asset requests, which directly lowers load times and GPU overhead in both web and mobile builds.
When to use it
- Animating a player character across multiple frames in a Macroquad WASM game
- Setting up frame-based animation in a Bevy ECS game with TextureAtlasLayout
- Importing a sprite sheet into Godot's AnimatedSprite2D for an idle and run cycle
- Packing pixel art exported from Aseprite into an optimized atlas with TexturePacker
- Reducing draw calls in a mobile game by consolidating enemy sprites into one atlas
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: How do I animate a sprite sheet in Bevy?
- 1Load the sprite sheet texture via AssetServer
- 2Define a TextureAtlasLayout grid with frame dimensions, padding, and offset
- 3Spawn a sprite entity with a TextureAtlas component and an AnimationTimer
- 4Implement an animate_sprite system that ticks the timer and advances the atlas index
- 5Add ImagePlugin::default_nearest() to DefaultPlugins for pixel art rendering
A working Bevy setup with looping frame animation on a sprite sheet entity