Loading

wire templates

  1. template tmpl_wire_normal(file) {
  2.     [ 10, 10, 64, 47, -31, -16, file]
  3.     [ 80, 10, 64, 47, -31, -16, file]
  4.  
  5.     [150, 10, 64, 47, -31, -16, file]
  6.     [220, 10, 64, 47, -31, -16, file]
  7.     [290, 10, 64, 47, -31, -16, file]
  8.     [360, 10, 64, 47, -31, -16, file]
  9.     [ 10, 66, 64, 47, -31, -16, file]
  10.  
  11.     [ 80, 66, 64, 47, -31, -16, file]
  12.     [150, 66, 64, 47, -31, -16, file]
  13.     [220, 66, 64, 47, -31, -16, file]
  14.     [290, 66, 64, 31, -31, -16, file]
  15.  
  16.     [150, 234, 64, 55, -31, -24, file]
  17.     [220, 234, 64, 39, -31, -16, file]
  18.     [290, 234, 64, 39, -31, -16, file]
  19.     [360, 234, 64, 55, -31, -24, file]
  20.  
  21.     [360,  66, 64, 31, -31, -16, file]
  22.     [ 10, 122, 64, 31, -31, -16, file]
  23.     [ 80, 122, 64, 31, -31, -16, file]
  24.     [150, 122, 64, 31, -31, -16, file]
  25.  
  26.     [220, 122, 64, 31, -31, -16, file]
  27.     [290, 122, 64, 31, -31, -16, file]
  28.     [360, 122, 64, 31, -31, -16, file]
  29.     [ 10, 178, 64, 31, -31, -16, file]
  30. }
  31.  
  32. template tmpl_wire_bridge(file) {
  33.     [ 10,  10, 64, 47, -31, -16, file]
  34.     [ 80,  10, 64, 47, -31, -16, file]
  35.     [150, 234, 64, 55, -31, -24, file]
  36.     [220, 234, 64, 39, -31, -16, file]
  37.     [290, 234, 64, 39, -31, -16, file]
  38.     [360, 234, 64, 55, -31, -24, file]
  39.  
  40. }
  41.  
  42. template tmpl_wire_roadtypes(a, b) {
  43.     tmpl_tmpl_wire_normal(a)
  44.     tmpl_tmpl_wire_bridge(b)
  45.  
  46.  
  47. spriteset(rear_bus_wood) {
  48.     tmpl_wire_roadtypes("gfx/wires/rear_wood.png", "gfx/wires/rear_wood_bridge.png")
  49. }

Comments