All examples · Meshes and 3D

A 2D game on a 3D screen

What this example shows

A mini 2D game written as ordinary components, PetGame and its children, that knows nothing about where it is shown. createSpriteTexture draws it into a 160×120 picture every frame, and that picture is the screen of a panel and the skin of a box.

The same picture sits flat in the corner to compare against.

Starting