Skip to content

Commit

Permalink
Fix #264: Sputnik cars have no sprites for diagonal inclines
Browse files Browse the repository at this point in the history
Fixes the sputnik diagonal incline sprites by making them re-use sprites from slopes25, it's not ideal but it's the best that can be done with the original graphics.
In case you're wondering, i did try it with just a single set of slopes8 sprites but slopes16 would still fallback to flat sprites so i had to duplicate the sprites in the images table.

Fixes #264
  • Loading branch information
ZeeMaji authored Jan 16, 2024
1 parent 4108603 commit 7f5f769
Showing 1 changed file with 44 additions and 5 deletions.
49 changes: 44 additions & 5 deletions objects/rct2ww/ride/rct2ww.ride.sputnikr.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@
"frictionSoundId": 2,
"soundRange": 0,
"drawOrder": 2,
"frames": {
"flat": true,
"gentleSlopes": true,
"diagonalSlopes": true
"spriteGroups": {
"slopeFlat": 32,
"slopes12": 4,
"slopes25": 32,
"slopes8": 4,
"slopes16": 4
},
"hasAdditionalColour1": true,
"hasSwinging": true,
Expand All @@ -58,7 +60,44 @@
}
},
"images": [
"$RCT2:OBJDATA/SPUTNIKR.DAT[0..1282]"
"$RCT2:OBJDATA/SPUTNIKR.DAT[0]",
"",
"",
"$RCT2:OBJDATA/SPUTNIKR.DAT[3..522]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[223..227]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[263..267]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[303..307]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[343..347]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[383..387]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[423..427]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[463..467]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[503..507]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[223..227]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[263..267]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[303..307]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[343..347]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[383..387]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[423..427]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[463..467]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[503..507]",

"$RCT2:OBJDATA/SPUTNIKR.DAT[643..1162]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[863..867]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[903..907]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[943..947]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[983..987]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[1023..1027]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[1063..1067]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[1103..1107]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[1143..1147]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[863..867]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[903..907]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[943..947]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[983..987]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[1023..1027]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[1063..1067]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[1103..1107]",
"$RCT2:OBJDATA/SPUTNIKR.DAT[1143..1147]"
],
"strings": {
"name": {
Expand Down

0 comments on commit 7f5f769

Please sign in to comment.