Loading

spritelayout_flip_example

  1. spritelayout concrete_platform_layout {
  2.   ground { sprite: GROUNDSPRITE_TRACK; index: [0, -1] }
  3.   building {
  4.     sprite: platform_set;
  5.     index: [0, 1]
  6.     yextent: 4;
  7.   }
  8.   childsprite {
  9.     sprite: cargo_set;
  10.     // index: 0; // default
  11.     xoffset: [32, 16];
  12.     yoffset: -16;
  13.   }
  14.   building {
  15.     sprite: platform_set(2);
  16.     index: [2, 3]
  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
pizr96hyh Anonymous 08 Jan 2015, 14:36:49 UTC Diff
po9b54ecz Anonymous 08 Jan 2015, 14:32:01 UTC Diff

Comments