Loading

Revision differences

Old revision #pzjtzla8oNew revision #phpmgml8t
2  2  
3spriteset(stationset1, "src/gfx/cc_grid.png") { tmpl_groundsprites(1, 1) }  3spriteset(stationset1, "src/gfx/cc_grid.png") { tmpl_groundsprites(1, 1) }  
4  4  
5spritegroup spritegroup1 {  5spritegroup 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  
9spriteset(stationset2, "src/gfx/cc_build.png") { tmpl_buildingsprites(1, 1) }  10spriteset(stationset2, "src/gfx/cc_build.png") { tmpl_buildingsprites(1, 1) }  
  11spriteset(stationset3, "src/gfx/cc_build.png") { tmpl_buildingsprites(1, 2) }  
  12spriteset(stationset4, "src/gfx/cc_build.png") { tmpl_buildingsprites(1, 3) }  
10  13  
11spritegroup spritegroup2 {  14spritegroup spritegroup2 {  
12  little: [ stationset2 ];  15  little: [ stationset2 ];  
  16  lots:   [ stationset3, stationset4 ];  
13}  17}  
14  18  
15spritelayout stationlayout2 {  19spritelayout 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  
  
40  44  
41action0:  45action0:  
42  layout0: stationlayout2 using var10=0 for ground, var10=1 for building1  46  layout0: stationlayout2 using var10=0 for ground, var10=1 for building1  
  47  layout1: stationlayout2 using var10=0 for ground, var10=1 for building1 and an additional 1 offset in the building for the Y orientation  
43  48  
44action3  49action3  
45->  varactions according to switch3  50->  varactions according to switch3