☀️ Tank lessonshow our diep.io tanks do what they do
Lesson 02

Drawing with barrels

A barrel that fires nothing is a rectangle you can put anywhere, hair-thin or fanned out, even across the middle of the face.

What you see

Brows, a scar across the whole face, a horn that comes to a needle point, and a fan tail. None of these are parts: parts are polygons and circles only. They are all barrels with Fires set to Nothing.

The trick

Barrels used as pen strokes: brows, a scar, a tapered horn, a fanned tailhorn: tip0.02 widebrow: a hair-thinbarrelscar: Gap -70,starts behind centrefan tail:tip 1.1 wide

A barrel is placed by Angle, Gap (where it starts, measured from the body's centre) and Length, and shaped by Width at base and Width at tip, both as multiples of a standard barrel's 42 units. Three things the stock tanks never do:

Numbers that matter

FieldRange the editor acceptsNotes
Width at base0.1 to 2.5 ×0.1 is 4 units: outline only
Width at tip0.1 × upward (the file can go lower)Values seen in players' packs run from a needle of 0.04 to a fan of 7.5 times the base
Gap−500 to 500Negative crosses the centre
Lengthup to 500Longer is clamped on import

Gotchas

Where we used it

Rattlebones: ribs, jaw lines and bone shafts drawn with thin barrels
Rattlebones: ribs, jaw lines and bone shafts drawn with thin barrels
Reaper: the scythe's shaft and blade edge
Reaper: the scythe's shaft and blade edge