Skip to content

Commit

Permalink
images and transformations
Browse files Browse the repository at this point in the history
removed old images to reduce size of rs
added new rotated images and edited code to make them work
  • Loading branch information
illudedPerception committed Dec 21, 2024
1 parent 9a02683 commit ec9c93c
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 14 deletions.
Binary file modified railroad.studio/AuroraFallsTopo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed railroad.studio/LakeValleyMap2.png
Binary file not shown.
Binary file modified railroad.studio/LakeValleyTopo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added railroad.studio/MesaPlainsTopo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified railroad.studio/PineValleyTopo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed railroad.studio/RRO_Pine_Valley_topo_map.png
Binary file not shown.
Binary file removed railroad.studio/lakeValleyCont.png
Binary file not shown.
35 changes: 21 additions & 14 deletions ts/RailroadMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -744,17 +744,18 @@ export class RailroadMap {
private renderBackground(): Element {
let image;
let transform;
if (this.railroad.settings.gameLevelName === 'LakeValley') {
image = 'LakeValleyTopo.png';
transform = 'matrix(-93.16,0,0,-93.16,197453,197453)';
// image = 'LakeValleyMap2.png';
// transform = 'matrix(-200,0,0,-200,200000,200000)';
if (this.railroad.settings.gameLevelName === 'MesaPlains') {
image = 'MesaPlainsTopo.png';
transform = 'matrix(140.9,0,0,140.9,-300899.5,-300459.5)';
} else if (this.railroad.settings.gameLevelName === 'AuroraFalls') {
image = 'AuroraFallsTopo.png';
transform = 'matrix(-139.13,0,0,-139.13,300900,300900)';
transform = 'matrix(140.9,0,0,140.9,-300899.5,-300459.5)';
} else if (this.railroad.settings.gameLevelName === 'LakeValley') {
image = 'LakeValleyTopo.png';
transform = 'matrix(92.5,0,0,92.5,-197454,-197454)';
} else {
image = 'PineValleyTopo.png';
transform = 'matrix(-96.80,0,0,-96.80,199951,199951)';
transform = 'matrix(93.81,0,0,93.81,-199953,-199953)';
}
return this.layers.background
.image(image)
Expand All @@ -765,21 +766,27 @@ export class RailroadMap {
// Border
if (this.railroad.settings.gameLevelName === 'LakeValley') {
return this.layers.border
.rect(4_000_00, 4_000_00)
.translate(-2_000_00, -2_000_00)
.radius(100_00)
.rect(3_949_00, 3_949_00)
.translate(-1_974_54, -1_974_54)
.radius(0)
.addClass('map-border');
} else if (this.railroad.settings.gameLevelName === 'AuroraFalls') {
return this.layers.border
.rect(6_000_00, 6_000_00)
.translate(-3_000_00, -3_000_00)
.radius(100_00)
.rect(6_018_59, 6_009_59)
.translate(-3_009_60, -3_005_20)
.radius(0)
.addClass('map-border');
} else if (this.railroad.settings.gameLevelName === 'MesaPlains') {
return this.layers.border
.rect(6_018_59, 6_009_59)
.translate(-3_009_60, -3_005_20)
.radius(0)
.addClass('map-border');
} else {
return this.layers.border
.rect(4_000_00, 4_000_00)
.translate(-2_000_00, -2_000_00)
.radius(100_00)
.radius(0)
.addClass('map-border');
}
}
Expand Down

0 comments on commit ec9c93c

Please sign in to comment.