examples/

directory
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: MIT

Directories

Path Synopsis
demos
3d-raycaster command
Wolfenstein-style dungeon crawler testbed for the Willow engine.
Wolfenstein-style dungeon crawler testbed for the Willow engine.
3d-village command
Village — a low-poly software 3D village rendered in the PS1/N64 aesthetic.
Village — a low-poly software 3D village rendered in the PS1/N64 aesthetic.
atlas command
Atlas demonstrates the TexturePacker atlas system and dynamic page registration.
Atlas demonstrates the TexturePacker atlas system and dynamic page registration.
basic command
Basic demonstrates a minimal willow scene with a colored sprite bouncing around the window.
Basic demonstrates a minimal willow scene with a colored sprite bouncing around the window.
cable-puzzle command
Rope Garden - a cable-untangling puzzle.
Rope Garden - a cable-untangling puzzle.
filter-gallery command
Filter Gallery showcases every built-in Willow filter applied to a whelp sprite.
Filter Gallery showcases every built-in Willow filter applied to a whelp sprite.
filter-showcase command
Filter Showcase demonstrates Willow's filter and shader system with a single sprite cycling through dramatic visual effects.
Filter Showcase demonstrates Willow's filter and shader system with a single sprite cycling through dramatic visual effects.
fireflies command
Fireflies demonstrates a nighttime meadow scene with glowing fireflies drifting on tweened paths, each casting a warm light.
Fireflies demonstrates a nighttime meadow scene with glowing fireflies drifting on tweened paths, each casting a warm light.
geometry-showcase command
Geometry Showcase demonstrates the breadth of Willow's polygon and custom geometry primitives: regular polygons, stars, custom polygons, circles, triangles, lines, and runtime vertex updates — all animated with tweens and per-frame rotation.
Geometry Showcase demonstrates the breadth of Willow's polygon and custom geometry primitives: regular polygons, stars, custom polygons, circles, triangles, lines, and runtime vertex updates — all animated with tweens and per-frame rotation.
interaction command
Interaction demonstrates draggable colored rectangles with click callbacks using willow.Run for a minimal game loop.
Interaction demonstrates draggable colored rectangles with click callbacks using willow.Run for a minimal game loop.
lighting command
Lighting Demo showcases the LightLayer system in a dark dungeon scene.
Lighting Demo showcases the LightLayer system in a dark dungeon scene.
lighting-showcase command
Lighting Showcase demonstrates Willow's circle light system with multiple colored lights orbiting and overlapping to create blended illumination.
Lighting Showcase demonstrates Willow's circle light system with multiple colored lights orbiting and overlapping to create blended illumination.
lightning-showcase command
Lightning Showcase demonstrates a dramatic lightning strike effect combining the lighting system, particle sparks, and screen flash.
Lightning Showcase demonstrates a dramatic lightning strike effect combining the lighting system, particle sparks, and screen flash.
mace command
Mace demonstrates a medieval flail — a spiked mace head on a chain — swinging around the screen using the Rope mesh for the chain and a Star polygon for the head.
Mace demonstrates a medieval flail — a spiked mace head on a chain — swinging around the screen using the Rope mesh for the chain and a Star polygon for the head.
mask-showcase command
Mask Showcase demonstrates Willow's clipping and masking system with a single sprite cycling through five dramatic mask effects, one per second.
Mask Showcase demonstrates Willow's clipping and masking system with a single sprite cycling through five dramatic mask effects, one per second.
masks command
Masks demonstrates three node-masking techniques in Willow across three equal full-height panels:
Masks demonstrates three node-masking techniques in Willow across three equal full-height panels:
outline command
Outline demonstrates outline and inline filters applied to a sprite with alpha transparency (whelp.png).
Outline demonstrates outline and inline filters applied to a sprite with alpha transparency (whelp.png).
particles command
Particles demonstrates the ParticleEmitter system with three distinct effects and two blend modes.
Particles demonstrates the ParticleEmitter system with three distinct effects and two blend modes.
physics command
physics spawns random shapes with gravity, collisions, and click-to-explode.
physics spawns random shapes with gravity, collisions, and click-to-explode.
pixel-font command
Text-pixelfont demonstrates pixel-perfect bitmap font rendering using willow.NewFontFamilyFromPixelFont.
Text-pixelfont demonstrates pixel-perfect bitmap font rendering using willow.NewFontFamilyFromPixelFont.
rope command
Rope demonstrates the Rope mesh helper by connecting two draggable nodes with a textured rope that sags under gravity.
Rope demonstrates the Rope mesh helper by connecting two draggable nodes with a textured rope that sags under gravity.
sdf-blizzard command
SDF Blizzard demonstrates SDF font effects with an icy theme: per-letter bouncing, intense glow/outline/shadow effects, and falling ice particles.
SDF Blizzard demonstrates SDF font effects with an icy theme: per-letter bouncing, intense glow/outline/shadow effects, and falling ice particles.
shaders command
Shaders showcases Willow's built-in filter system by displaying all shader effects simultaneously in a 3x3 grid, each applied to a pre-rendered tilemap panel with animated parameters.
Shaders showcases Willow's built-in filter system by displaying all shader effects simultaneously in a 3x3 grid, each applied to a pre-rendered tilemap panel with animated parameters.
shapes command
Shapes demonstrates scene graph hierarchy with polygons and containers.
Shapes demonstrates scene graph hierarchy with polygons and containers.
sprite-stress command
sprites10k spawns 10,000 whelp sprites that rotate, scale, fade, and bounce around the screen simultaneously.
sprites10k spawns 10,000 whelp sprites that rotate, scale, fade, and bounce around the screen simultaneously.
text command
Text demonstrates font rendering with willow.NewText and willow.NewFontFamilyFromFontBundle.
Text demonstrates font rendering with willow.NewText and willow.NewFontFamilyFromFontBundle.
tiled-loader command
Demo: loading a Tiled (.tmx) map into Willow's tilemap system via go-tiled.
Demo: loading a Tiled (.tmx) map into Willow's tilemap system via go-tiled.
tilemap-basic command
Tilemap demonstrates a grid-based tilemap with camera panning.
Tilemap demonstrates a grid-based tilemap with camera panning.
tilemap-viewport command
TileMapViewport demonstrates the geometry-buffer tilemap renderer with camera panning, multiple tile layers, and a sandwich entity layer.
TileMapViewport demonstrates the geometry-buffer tilemap renderer with camera panning, multiple tile layers, and a sandwich entity layer.
tween-gallery command
Tween Gallery showcases every easing function available in Willow's tween system.
Tween Gallery showcases every easing function available in Willow's tween system.
tween-recipe command
Tween Recipe demonstrates a coordinated tween combo where twelve circles bloom outward from center, rotate and shift color, then converge back in a continuous loop.
Tween Recipe demonstrates a coordinated tween combo where twelve circles bloom outward from center, rotate and shift color, then converge back in a continuous loop.
tweens command
Tweens demonstrates the tween animation system using tiles from the shared tileset.
Tweens demonstrates the tween animation system using tiles from the shared tileset.
underwater command
Underwater demonstrates a layered underwater scene revealed through a circular porthole mask that follows the cursor.
Underwater demonstrates a layered underwater scene revealed through a circular porthole mask that follows the cursor.
watermesh command
Watermesh demonstrates per-vertex wave animation using a DistortionGrid textured with tile 13 (the water tile) from the bundled tileset.
Watermesh demonstrates per-vertex wave animation using a DistortionGrid textured with tile 13 (the water tile) from the bundled tileset.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL