Skip to content

Instantly share code, notes, and snippets.

@andythenorth
Created February 7, 2021 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andythenorth/02c3d8b8ccf971f075b98f05b5e769cc to your computer and use it in GitHub Desktop.
Save andythenorth/02c3d8b8ccf971f075b98f05b5e769cc to your computer and use it in GitHub Desktop.
// --------------------- crane rails --------------------- //
-1 * 0 00 04 \b4 \b1 TILE_HARBOUR_CRANE_RAILS_2
08 "CHPT" // Class ID - groups stations in menu
1A 02 // 2 tiles
//Basic layout
43
\dx000003F4 \wx0002 00 // custom ground sprite
\dx80008431 \wx0000
00 00 80 // combine with bounding box of ground sprite
\dx80008432 \wx0000
00 00 80 // combine with bounding box of ground sprite
\dx8000842D \wx0000
00 00 80 // combine with bounding box of ground sprite
43
\dx000003F3 \wx0002 00 // custom ground sprite
\dx8000842F \wx0000
00 00 80 // combine with bounding box of ground sprite
\dx80008430 \wx0000
00 00 80 // combine with bounding box of ground sprite
\dx8000842E \wx0000
00 00 80 // combine with bounding box of ground sprite
//Basic layout
11 00 // catenary pylon placement (00 = none)
14 FF // catenary wire placement (FF = none)
//Tile action 1
-1 * 0 01 04 \b1 \b6 //-1 * 0 01 09 <num-sets> <num-ent>
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
-1 src/graphics/harbour_cranes.png 80 250 09 39 64 -31 -8
-1 src/graphics/harbour_cranes.png 10 250 09 39 64 -31 -8
//ground tile
-1 src/graphics/groundtiles.png 80 130 09 31 64 -31 0
-1 src/graphics/groundtiles.png 80 170 09 31 64 -31 0
-1 src/graphics/groundtiles.png 80 50 09 31 64 -31 0
-1 src/graphics/groundtiles.png 80 90 09 31 64 -31 0
-1 * 7 02 04 00 00 01 \w0
// Set temp register 0 to 0
-1 * 0 02 04 00 81
1A 20 00 \2sto
1A 00 00
01 \wx00 00 00 \wx00
// byte is index in cargotable, word is THIS_SET_ID define above
-1 * 0 03 04 01 TILE_HARBOUR_CRANE_RAILS_2 \b0
\wx00
@andythenorth
Copy link
Author

harbour_cranes_tracks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment