Loading

elaborate_station_example

  1. spriteset(grounds, "graphics/grounds.png") {
  2.   concrete: template_grounds(0);
  3.   cobble: template_grounds(1);
  4.   dirt: template_grounds(2);
  5. }

Paste #pc8ozzfzv

  1. spriteset(stationset2, "src/gfx/cc_build.png") { tmpl_buildingsprites(1, 1) }
  2. spriteset(stationset3, "src/gfx/cc_build.png") { tmpl_buildingsprites(1, 2) }
  3. spriteset(stationset4, "src/gfx/cc_build.png") { tmpl_buildingsprites(1, 3) }
  4.  
  5. spritegroup spritegroup2 {

Paste #pbyx7xrcu

  1. spriteset(stationset2, "src/gfx/cc_build.png") { tmpl_buildingsprites(1, 1) }
  2. spriteset(stationset3, "src/gfx/cc_build.png") { tmpl_buildingsprites(1, 2) }
  3. spriteset(stationset4, "src/gfx/cc_build.png") { tmpl_buildingsprites(1, 3) }
  4.  
  5. spritegroup spritegroup2 {

Paste #pqvoezwke

  1. spriteset(spriteset1x) { ...
  2. }
  3. spriteset(spriteset1y) { ...
  4. }
  5. spriteset(spriteset2x) { ...

Paste #p8wqrxkgf

  1. spriteset(spriteset1x) { ...
  2. }
  3. spriteset(spriteset1y) { ...
  4. }
  5. spriteset(spriteset2x) { ...

Paste #pvoon5omk

  1. spriteset(wind_powerplant_set, "src/gfx/windfarm.png")  {
  2.     tmpl_wind_powerplant( 10,  10)
  3.     tmpl_wind_powerplant(110,  10)
  4.     tmpl_wind_powerplant(210,  10)
  5.     tmpl_wind_powerplant(310,  10)

Paste #psr55uqpc

  1. spriteset(stationset2, "src/gfx/cc_build.png") { tmpl_buildingsprites(1, 1) }
  2. spriteset(stationset3, "src/gfx/cc_build.png") { tmpl_buildingsprites(1, 2) }
  3. spriteset(stationset4, "src/gfx/cc_build.png") { tmpl_buildingsprites(1, 3) }
  4.  
  5. spritegroup spritegroup2 {

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]

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

spritelayout_flip_example

  1. spritelayout concrete_platform_layout {
  2.   ground { sprite: GROUNDSPRITE_TRACK; flip { sprite: -1; } }
  3.   building {
  4.     sprite: platform_set(0);
  5.     yextent: 4;

Paste #pfnrhbitz

  1. spriteset back_sprites {
  2.   ... pairs for sprites for cargos and orientation ....
  3. }
  4.  
  5. spriteset front_sprites {

cats.nml

  1. grf {
  2.   grfid: "CATS";
  3.   name: string(STR_GRF_NAME);
  4.   desc: string(STR_GRF_DESC);
  5.   url: string(STR_GRF_URL);

station_layouts_example.n

  1. spriteset(lowered_platforms) {
  2.   [-31, 0, "graphics/lowered_x.png"]
  3.   [-31, 0, "graphics/lowered_y.png"]
  4. }

station_layouts_example.n

  1. spriteset(lowered_platforms) {
  2.   [-31, 0, "graphics/lowered_x.png"]
  3.   [-31, 0, "graphics/lowered_y.png"]
  4. }

Paste #phpmgml8t

  1. input nml:
  2.  
  3. spriteset(stationset1, "src/gfx/cc_grid.png") { tmpl_groundsprites(1, 1) }
  4.  
  5. spritegroup spritegroup1 { // alternatively: reference spriteset directly in spritelayout, and generate a spritegroup automatically using the same spriteset for all cases