1. Home
  2. Ironfall
  3. Dev log
  4. Update 22
UPDATE 22Dogs that run at you, and away

Every run was a walk

A dog running straight at you, or straight away from you, was playing its walk. The sheet the eight breeds were drawn from only ever had a standing row and a walking row for the front and back views, so those two directions had no run art and the run was the walk again at run speed. Both are now proper 4-frame runs on all eight breeds, and they were not redrawn: the movement is planned first, from the side run's own rhythm, and then applied to the walk drawing you already approved, so every breed keeps its coat, its ears and its build.

Rook the Doberman in the real game, the 480x270 viewport at 3x: run_down, coming at the camera, on the top row, and run_up, going away, on the bottom row, one frame of the cycle per tile. A Godot script walks him towards the camera and then away and crops the view as he runs; the hotbar and his name plate are hidden here so nothing sits over the animal.

What's new

  • All eight breeds now have run_down and run_up - a dog coming at the camera and a dog going away - as their own 4-frame cycles. Before this update both were the walk frames played again, which is why a dog sprinting towards you looked like it was strolling.
  • The run was planned before it was drawn, the same way the bullet tracer and the blood spray were rebuilt from computed paths. The gait is measured off the side run, which always had its own row: on the two stride frames the two legs of a pair are driven 2 px and 1 px apart with the leading leg reaching further, and on the two gathered frames they pull in under the body and the whole figure comes 1-2 px up, off the ground - the airborne half of the cycle. The leading leg swaps sides every frame, and that alternation is what makes four frames read as a run instead of one pose jittering.
  • The drawing underneath is your approved walk, driven differently, so no breed looks different: the coat, the ear shape, the collar, the build and the lit edge are the same pixels on the same animal. Between 1.0% and 12.0% of each run frame differs from its walk frame, and no run frame is a copy of its walk frame.
  • Coming at you, the dog's head drops. The head band - ear tips included, so no breed's ears get shortened - sits 1 px lower on the two stride frames, which is the head lower and forward and the figure foreshortened by the same row. The feet stay on the ground line, so a dog running at the camera is 1 px shorter than the same dog walking.
  • Going away, the tail comes up over the rump - and where the breed has a stub, it stays a stub. The Doberman and the Rottweiler keep a 1 px docked nub instead of growing a generic tail; the other six raise a real tail, its length taken from that breed's own side art.
  • Nothing else about the dog changed: the tag names the game already asks for are the same (run_down, run_up), the timing is the run timing it always was, and the dog controller needed no change. The duplicate-tag check that used to report run_down == walk_down is silent, and the review page is back to 0 missing art (was 16).

How it was made

  1. The front and back view of a breed is generated from one sheet that carries an idle row and a walk row, and the stage builder filled the missing run by repeating the walk frames: frames += vf[4:8] + vf[4:8]. So run_down was walk_down and run_up was walk_up on all eight breeds, and the movement was the only difference - a dog turning towards the camera kept the walk drawing.
  2. Drawing the run again was the wrong move. A second generation pass would have re-rolled the coat, the ears and the build, and the eight breeds had only just been settled with their own silhouettes and rim light. So the movement is computed and the pixels come from the art that was already approved: tools/art/dog_run_dirs.py reads the 32x32 palette-index frames the stage builder produces, finds the leg band, and drives it.
  3. The gait table is measured, not invented: the side run was always its own row, so the rhythm is read off it - the figure wider and the two legs of a pair further apart on the stride frames, tucked in on the gathered frames with the body 1 px up. That rhythm is then applied to the front and back drawing, so the two new directions and the side run are the same gait.
  4. Each new direction then gets its own cue from the card. HEAD_LOWER drops the head band 1 px on the front run - ear tips and all, so no breed's ear shape is cut short - and blanks the row it vacates, which is what foreshortens the dog coming at you. TAIL_ROWS raises a tail over the rump on the back run, and it is 1 rather than 2 on the Doberman and the Rottweiler: the Rottweiler carries the dock_tail op and the Doberman's own prompt asks for a short docked stub tail, and the Rottweiler's real stub measures only 4-5 px tall in the side art, so geometry alone could not have told a stub from a small tail.
  5. Everything downstream does its usual pass on the new frames and needs no special case: the per-breed coat remap, the silhouette ops, the 1 px rim light, and then finish_all.lua for the Soot outline and the dithered contact shadow. That is why the new frames sit in the same 32-colour palette and carry the same lit edge as the art you signed off.
  6. The check was on the real output, not on the code. Across the eight sheets only frames 40-43 and 52-55 change - the other 48 frames of every breed are byte-identical - every run frame differs from its walk frame (1.0-12.0% of the frame) and no two consecutive run frames are the same. The art manifest test (113 rows, 32 colours), the dog test (166 checks) and a headless run of the game (zero errors) all pass. The in-game pictures here are a Godot script of their own (tests/screenshot_dogrun.gd): it walks Rook towards the camera and then away, waits for each animation frame of the cycle, and crops the game's 480x270 viewport at 3x.

Screens

Doberman at 4x: the four walk frames on the left of each half, the four run frames on the right, the front view on the top row and the back view on the bottom. Coming at the camera the head band - ear crop and all - sits 1 px lower on the two stride frames, so the dog foreshortens; going away the docked stub stays a nub over the rump. 5.0-8.7% of each run frame differs from its walk frame.
Pit Bull at 4x: walk left, run right, front above, back below. The coat, the wide chest and the round head are the same drawing in both halves - the run drives the legs 2 px and 1 px apart on the strides and gathers them on the other two frames. Going away a real tail comes up over the rump. 4.1-11.4% of each run frame differs from its walk frame.
Retriever at 4x: walk left, run right, front above, back below. Same coat, same ears, same build, because it is the same approved drawing being driven differently; the only change coming at the camera is the head band sitting 1 px lower on the two strides. 1.0-9.8% of each run frame differs from its walk frame.
German Shepherd at 4x: walk left, run right, front above, back below. The upright ears and the saddle are untouched - the head band drops 1 px on the stride frames, ear tips and all, rather than being shortened - and the tail is raised over the rump on the two gathered frames going away. 1.9-9.2% of each run frame differs from its walk frame.
Rottweiler at 4x: walk left, run right, front above, back below. This is the other docked breed, so the back run keeps a 1 px nub over the rump instead of growing a generic tail, while the heavy build and the sooty coat are exactly the art you approved. 5.1-12.0% of each run frame differs from its walk frame.
Malinois at 4x: walk left, run right, front above, back below. Fawn coat and black mask unchanged; the legs are the change - 2 px and 1 px apart on the two stride frames, tucked under the body with the figure 1-2 px off the ground on the other two. 2.1-7.3% of each run frame differs from its walk frame.
Husky at 4x: walk left, run right, front above, back below. The bright silver coat and the face mask are the same pixels in both halves, the head 1 px lower on the strides towards the camera and the tail up over the rump going away. 3.5-7.5% of each run frame differs from its walk frame.
Cattle Dog at 4x: walk left, run right, front above, back below. The blue speckle, the eye patch and the smallest build of the eight are untouched, and because it is the shortest dog on screen the same 1 px head drop and 1-2 px lift is a larger share of it. 3.2-7.2% of each run frame differs from its walk frame.

Tools used

Python + numpytools/art/dog_run_dirs.py: measures the side run's gait and drives the approved walk's leg band, head and tail on the front and back frames. It runs inside the stage build, so a rebuild reproduces the run exactly.
Aseprite (headless)The rebuild stage: finish_all.lua adds the Soot outline and the dithered contact shadow to the new poses in the editable .aseprite sources, then export.sh writes the sheets, the tags and the Godot animation data.
Godot 4.7.2The evidence: tests/screenshot_dogrun.gd drives the real game and crops its viewport mid-run; the same build runs the art manifest, dog behaviour and headless error checks.
Python + Pillowtools/art/dogrun_devblog.py builds the walk-beside-run sheets per breed from the exported frame tags, and tools/art/dogrun_ingame.py stacks the in-game crops into one picture.

How to try it

  • Launch the game (godot --path .), adopt a dog and walk away from it: it runs after you with a running cycle now instead of a walk played fast. Then run straight at it and watch it turn and go - the gait is the same in both directions, and the tail comes up as it leaves.
  • The two new tags are frames 41-44 (run_down) and 53-56 (run_up) in assets/sprites/dog_<breed>.png, counting from 1, on all eight breeds.

Known issues

  • The run is the approved walk drawing, driven differently. That was the point - a redraw would have re-rolled every breed's coat and ears - but it also means the stretch of the stride is a 2 px change of a leg, not a redrawn pose. A hand-drawn run would read as faster.
  • One gait is shared by all eight breeds: the rhythm is measured off the side run and applied to every breed, so a breed-specific trot, or a husky that moves differently from a cattle dog, is a follow-up rather than a bug. It is the GAIT table and HEAD_LOWER in tools/art/dog_run_dirs.py if one breed should differ.
  • Coming at the camera, the head band only drops on the two stride frames; on the two gathered frames the 1 px lift cancels it, so the head sits at the walk's height there. If the head should stay down through the whole cycle, that is one number.

Ironfall dev log · Update 22 of 22 · All updates

01 / 01

FIT