fix platform data in game-type.sml (platform 2 and platform 5 had their IDs swapped for testing purposes, but they kept their previous position in the platforms vector, and because we rely on platforms being ordered and being able to perform binary search in the platforms vector, that caused inconsistencies
This commit is contained in:
@@ -162,10 +162,10 @@ struct
|
||||
val wallTree = Wall.generateTree walls
|
||||
|
||||
val plat1 = {id = 1, x = 155, y = 911, width = 199}
|
||||
val plat5 = {id = 2, x = 355, y = 759, width = 555}
|
||||
val plat2 = {id = 2, x = 355, y = 759, width = 555}
|
||||
val plat3 = {id = 3, x = 355, y = 659, width = 555}
|
||||
val plat4 = {id = 4, x = 155, y = 855, width = 199}
|
||||
val plat2 = {id = 5, x = 155, y = 811, width = 199}
|
||||
val plat5 = {id = 5, x = 155, y = 811, width = 199}
|
||||
val plat6 = {id = 6, x = 155, y = 710, width = 199}
|
||||
val platforms = Vector.fromList [plat1, plat2, plat3, plat4, plat5, plat6]
|
||||
val platformTree = Platform.generateTree platforms
|
||||
|
||||
Reference in New Issue
Block a user