Loading

spritelayout_flip_example

  1. spritelayout concrete_platform_layout {
  2.   ground { sprite: GROUNDSPRITE_TRACK; flip { sprite: -1; } }
  3.   building {
  4.     sprite: platform_set(0);
  5.     orientation_offset: 1
  6.     yextent: 4;
  7.   }
  8.   childsprite {
  9.     sprite: cargo_set(0);
  10.     orientation_offset: 1
  11.     xoffset: [32, 16];
  12.     yoffset: -16;
  13.   }
  14.   building {
  15.     sprite: platform_set(2);
  16.     orientation_offset: 1
  17.     yoffset: 12; // if only one value is specified than x/yoffset and x/yextent are swapped automatically for "building" entries
  18.     yextent: 4;
  19.   }
  20. }

Version history

Revision # Author Created at
po9b54ecz Anonymous 08 Jan 2015, 14:32:01 UTC Diff

Comments