Skip to content

Commit

Permalink
More work on Coppernob
Browse files Browse the repository at this point in the history
  • Loading branch information
audigex committed Mar 28, 2024
1 parent c12e080 commit 4509d33
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
Binary file modified gfx/Steam/FurnessCoppernob.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 9 additions & 9 deletions src/templates.pnml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ template tmpl_train_8_reversed(x, y) {
[x + 92, y + 2, 21, 18, -12, -12] // nw
}

template template_train16px(x,y){ // Clone to 4view when changed
template template_train12px(x,y){
//left_x, upper_y, width, height, offset_x, offset_y
[ x, y, 8, 15, -3, -11]
[ x+9, y, 13, 13, -7, -10]
[ x+23, y, 16, 12, -4, -8]
[ x+40, y, 13, 13, 1, -7]
[ x+54, y, 8, 15, -3, -5]
[ x+63, y, 13, 13, -13, -7]
[ x+77, y, 16, 12, -15, -8]
[ x+94, y, 13, 13, -5, -10]
[ x, y, 8, 14, -3, -11]
[ x+9, y, 12, 12, -7, -7]
[ x+23, y, 12, 12, -4, -8]
[ x+35, y, 12, 12, 1, -7]
[ x+48, y, 8, 14, -3, -5]
[ x+57, y, 12, 12, -13, -7]
[ x+70, y, 12, 12, -15, -8]
[ x+83, y, 12, 12, -5, -7]
}

template template_train20px(x,y){ // Clone to 4view when changed
Expand Down
21 changes: 13 additions & 8 deletions src/trains/steam/FurnessCoppernob.pnml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,29 @@ spriteset(spriteset_Coppernob_Purchase, "gfx/Steam/FurnessCoppernob.png") {
}

spriteset(spriteset_Coppernob_FurnessRed, "gfx/Steam/FurnessCoppernob.png") {
template_train20px_anim(0, 13)
template_train20px(0, 13)
}

spriteset(spriteset_CoppernobT_FurnessRed, "gfx/Steam/FurnessCoppernob.png") {
template_train16px(0, 31)
template_train12px(0, 31)
}

switch(FEAT_TRAINS,SELF, sw_CoppernobT,cargo_subtype){
switch(FEAT_TRAINS,SELF, sw_CoppernobLoco,cargo_subtype){
0: spriteset_Coppernob_FurnessRed;
}

switch(FEAT_TRAINS,SELF, sw_CoppernobTender,cargo_subtype){
0: spriteset_CoppernobT_FurnessRed;
}

switch(FEAT_TRAINS,SELF, sw_Coppernob,cargo_subtype){
0: spriteset_Coppernob_FurnessRed;
switch(FEAT_TRAINS, SELF, sw_Coppernob, position_in_articulated_veh){
0: sw_CoppernobLoco;
1: sw_CoppernobTender;
}

switch(FEAT_TRAINS, SELF, switch_coppernob_length, position_in_articulated_veh % 2) {
1: return 5;
2: return 4;
switch(FEAT_TRAINS, SELF, switch_coppernob_length, position_in_articulated_veh) {
0: return 5;
1: return 4;
}

switch (FEAT_TRAINS, SELF, switch_articulated_Coppernob, extra_callback_info1) {
Expand Down

0 comments on commit 4509d33

Please sign in to comment.