Skip to content

Instantly share code, notes, and snippets.

@glx22
Created September 10, 2022 22:51
Show Gist options
  • Save glx22/9ac3eec2dbd7dd58abae92c780b7c138 to your computer and use it in GitHub Desktop.
Save glx22/9ac3eec2dbd7dd58abae92c780b7c138 to your computer and use it in GitHub Desktop.
spritelayout simple_track_X {
ground {
sprite: GROUNDSPRITE_RAIL_X;
}
\b73 \dx000003F4 \wx0000
childsprite {
sprite: CUSTOM(0, 0);
}
\dx8000042D \wx0042 \b0 \b0 80 80 01
childsprite {
sprite: CUSTOM(0, 1);
}
\dx8000042D \wx0042 \b0 \b0 80 81 01
// NE Buffer
building {
sprite: buffer_spriteset(NE);
xextent: 1;
zextent: 4;
hide_sprite: LOAD_TEMP(0);
}
\dx8000042D \wx0043 \b0 \b0 \b0 \b1 \b16 \b4 82 83 03
// SW Buffer
building {
sprite: buffer_spriteset(SW);
xoffset: 16;
xextent: 1;
zextent: 4;
hide_sprite: LOAD_TEMP(1);
}
\dx8000042D \wx0043 \b16 \b0 \b0 \b1 \b16 \b4 84 85 03
// House on south end
building {
sprite: houses_spriteset(0 + LOAD_TEMP(6) / 3);
yoffset: LOAD_TEMP(6);
yextent: 4;
zextent: 8;
hide_sprite: LOAD_TEMP(2);
}
\dx8000042D \wx0053 \b0 \b0 \b0 \b16 \b4 \b8 86 87 88 06 04
// House on north end
building {
sprite: houses_spriteset(1 + LOAD_TEMP(6) / 3);
yoffset: LOAD_TEMP(6);
yextent: 4;
zextent: 8;
hide_sprite: LOAD_TEMP(3);
}
\dx8000042D \wx0053 \b0 \b0 \b0 \b16 \b4 \b8 89 8A 8B 06 04
// Crane, truck, building, forklift
building {
sprite: CUSTOM(1, 0 + LOAD_TEMP(7));
yextent: 4;
zextent: 20;
recolour_mode: RECOLOUR_REMAP;
palette: PALETTE_USE_DEFAULT;
hide_sprite: LOAD_TEMP(4);
}
\dx8000842D \wx0043 \b0 \b0 \b0 \b16 \b4 \b20 8C 07 05
// Cargo
building {
sprite: DEFAULT(0);
yextent: 4;
zextent: 5;
hide_sprite: LOAD_TEMP(5);
}
\dx8000042D \wx0003 \b0 \b0 \b0 \b16 \b4 \b5 8D 8E
building {
sprite: DEFAULT(1);
yoffset: 12;
yextent: 4;
zextent: 5;
hide_sprite: LOAD_TEMP(5);
}
\dx8000042D \wx0003 \b0 \b12 \b0 \b16 \b4 \b5 8F 90
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment