Loading

Revision differences

Old revision #pfzxi8oiwNew 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, WITHOUT_ORIENTATION) // use sprite 0 for both orientations  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, WITH_ORIENTATION)    // use sprite 0 for X and 0+1 for Y  20  sprite: spritegroup2(0, 1) // use sprite 0 for X and 0+1 for Y
21 }  25 }  
22}  26}  
23  27