← projects
Experiment

Parted bots

A limb-destruction system. Bots are drawn once, in layers, and broken 32 different ways.

  • TypeScript
  • Phaser 3
  • Aseprite
Parted bots screenshot

What it is

Enemies whose heads and limbs come off when shot, without drawing every combination. Each bot is drawn once, in layers. Every frame the game puts the layers back together, hides what’s been shot off, sparks a stump at the joint and throws the lost part as wreckage. Five removable parts give 32 looks for the price of one animation set.

What’s interesting

  • Body plans as data. Each kind of bot declares its parts, which one is the head, which hold guns (each gun is its own attack) and which are legs. Lose the legs and it crawls.
  • Joints drawn by the artist. A hidden layer marks one pixel per limb per frame where it meets the torso: that’s where it tears off and where the stump sparks.
  • Rules apart from rendering. Damage rules live in the engine-agnostic core; the Phaser side only reads the exported rig, draws the bot and simulates the debris.
Next projectkitsune