Old revision #pfzxi8oiw | New revision #phpmgml8t | ||
---|---|---|---|
2 | 2 | ||
3 | spriteset(stationset1, "src/gfx/cc_grid.png") { tmpl_groundsprites(1, 1) } | 3 | spriteset(stationset1, "src/gfx/cc_grid.png") { tmpl_groundsprites(1, 1) } |
4 | 4 | ||
5 | spritegroup spritegroup1 { | 5 | spritegroup spritegroup1 { // alternatively: reference spriteset directly in spritelayout, and generate a spritegroup automatically using the same spriteset for all cases |
6 | little: [ stationset1 ]; | 6 | little: [ ]; |
7 | lots: [ stationset1 ]; | ||
7 | } | 8 | } |
8 | 9 | ||
9 | spriteset(stationset2, "src/gfx/cc_build.png") { tmpl_buildingsprites(1, 1) } | 10 | spriteset(stationset2, "src/gfx/cc_build.png") { tmpl_buildingsprites(1, 1) } |
11 | spriteset(stationset3, "src/gfx/cc_build.png") { tmpl_buildingsprites(1, 2) } | ||
12 | spriteset(stationset4, "src/gfx/cc_build.png") { tmpl_buildingsprites(1, 3) } | ||
10 | 13 | ||
11 | spritegroup spritegroup2 { | 14 | spritegroup spritegroup2 { |
12 | little: [ stationset2 ]; | 15 | little: [ stationset2 ]; |
16 | lots: [ stationset3, stationset4 ]; | ||
13 | } | 17 | } |
14 | 18 | ||
15 | spritelayout stationlayout2 { | 19 | spritelayout stationlayout2 { |
16 | ground { | 20 | ground { |
17 | sprite: spritegroup1(0, | 17 | sprite: spritegroup1(0, 0) // the second offset must be a compile-time constant, and is added to the first for Y direction. in this case use sprite 0 for both orientations |
18 | } | 22 | } |
19 | building { | 23 | building { |
20 | sprite: spritegroup2(0, | 20 | sprite: spritegroup2(0, 1) // use sprite 0 for X and 0+1 for Y |
21 | } | 25 | } |
22 | } | 26 | } |
23 | 27 |