Railroads are now much more visible!
This commit is contained in:
parent
c447bd2da8
commit
a8c98f60d7
5 changed files with 338 additions and 338 deletions
Binary file not shown.
Before Width: | Height: | Size: 613 B After Width: | Height: | Size: 659 B |
File diff suppressed because it is too large
Load diff
Binary file not shown.
Before Width: | Height: | Size: 874 KiB After Width: | Height: | Size: 872 KiB |
Binary file not shown.
Before Width: | Height: | Size: 275 KiB After Width: | Height: | Size: 282 KiB |
|
@ -372,8 +372,8 @@ open class TileGroup(var tileInfo: TileInfo, var tileSetStrings:TileSetStrings)
|
|||
// Here, we want to have the roads start HALFWAY THERE and extend towards the tiles, so we give them a position of 0.8*25.
|
||||
image.moveBy(-relativeWorldPosition.x * 0.8f * 25f, -relativeWorldPosition.y * 0.8f * 25f)
|
||||
|
||||
image.setSize(10f, 2f)
|
||||
image.setOrigin(0f, 1f) // This is so that the rotation is calculated from the middle of the road and not the edge
|
||||
image.setSize(10f, 6f)
|
||||
image.setOrigin(0f, 3f) // This is so that the rotation is calculated from the middle of the road and not the edge
|
||||
|
||||
image.rotation = (180 / Math.PI * Math.atan2(relativeWorldPosition.y.toDouble(), relativeWorldPosition.x.toDouble())).toFloat()
|
||||
terrainFeatureLayerGroup.addActor(image)
|
||||
|
|
Loading…
Reference in a new issue