Back to AI game news
AI game news

SpriteCook shows how to animate pixel-art trees in the wind without extra frames

By GameSlash

Kimo’s Godot demo uses whole-pixel steps, a traveling wave across the canopy, and localized gusts to bring a pixel-art forest to life.

SpriteCookPixel ArtGodotGame Development

Kimo from SpriteCook shared a pixel-art wind demo on November 13 that shows leaf clusters rippling through a forest. Viking picked up the demo the next day. The trees, bushes and ground art were generated with SpriteCook, and code animates the scene from static sprites.

Pixel-art forest with a winding path, broadleaf trees and pines
The forest scene from Kimo’s demo · Kimo / SpriteCook

The oak starts as one sprite. Kimo split it into a fixed trunk and roots, 14 clusters of leaves, and a darker canopy layer underneath. That dark layer fills the gaps that appear when the clusters shift, so the background stays hidden.

Oak sprite, 14 color-coded leaf clusters, the trunk and roots, and the dark inner canopy
The original oak and its component layers, from left to right · Kimo / SpriteCook

Each cluster moves in whole-pixel steps. Its position along the wind direction determines when that movement begins, so nearby clusters move in sequence and the motion reads as a wave. The demo updates leaf poses ten times a second.

Looped clip of leaf clusters moving in sequence across the oak canopy
Clip excerpt showing how the movement travels through the canopy · Kimo / SpriteCook

A gust affects a patch of the map at a time. As it passes, nearby leaves move farther and then settle. The pine uses eight tiers of branches that follow its bending trunk, giving it a different silhouette in the wind.

Pixel-art forest debug view with a bright patch indicating the current gust
The highlighted area shows which part of the forest a gust affects · Kimo / SpriteCook

The SpriteCook guide includes a Python script for splitting the sprite, a working Godot 4 example, and a prompt for coding agents such as Claude Code, Codex and Cursor. For the rendering settings that keep this kind of motion sharp, see Kimo’s guide to crisp pixel-art rendering.

View source