Live samples

This page contains links to web-browser versions of the C samples. They’re compiled with emscripten (https://emscripten.org/) with a pre-release version of Tilengine that supports html5 targets.

tutorial
Basic sample. Loads a tilemap and creates tha window
platformer
Enhanced version. Uses raster effects for sky gradient and better depth effect. Demonstrates linescroll and independent scrolling strips.
scaling
Shows layer scaling capabilities
racer
Raster effects to simulate 3D road using only color shifts. Sprite scaling
shadow
Raster effects for enhanced depth and basic sprite animation
mode7
Raster effects on affine transformed layer to emulate 3d projection
barrel
Raster effects on affine transformed layer to emulate 3D barrel projection
wobble
Combines column offset and raster effects to simulate smooth underwater distortion
color cycle
Static image with complex palette cycle animation
forest
World management introduced in v2.9. Combines different types of layers in a single map, including object layers for props.
layerwindow
Shows layer windowing features introduced in release 2.14. Inverse clipping and color math
layercircle
Enhanced version of the layerwindow, uses raster effects to build a circle-shaped clipping window
testmouse
Demosntrates integration with SDL library to process mouse input