Skip to content

Commit

Permalink
increased switch size
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonCat4012 committed Jun 20, 2024
1 parent 488de73 commit 2271665
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
48 changes: 24 additions & 24 deletions Scenes/game.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ metadata/ID = 7

[node name="Switch_1" type="TextureRect" parent="."]
offset_left = 223.0
offset_top = 875.0
offset_right = 1413.0
offset_bottom = 2065.0
offset_top = 849.0
offset_right = 1673.0
offset_bottom = 2310.0
scale = Vector2(0.048, 0.096)
texture = ExtResource("6_1cxes")
expand_mode = 2
Expand All @@ -152,9 +152,9 @@ metadata/ID = 1

[node name="Switch_2" type="TextureRect" parent="."]
offset_left = 342.0
offset_top = 875.0
offset_right = 1532.0
offset_bottom = 2065.0
offset_top = 849.0
offset_right = 1803.0
offset_bottom = 2310.0
scale = Vector2(0.048, 0.096)
texture = ExtResource("6_1cxes")
expand_mode = 2
Expand All @@ -164,9 +164,9 @@ metadata/ID = 2

[node name="Switch_3" type="TextureRect" parent="."]
offset_left = 454.0
offset_top = 875.0
offset_right = 1644.0
offset_bottom = 2065.0
offset_top = 849.0
offset_right = 1915.0
offset_bottom = 2310.0
scale = Vector2(0.048, 0.096)
texture = ExtResource("6_1cxes")
expand_mode = 2
Expand All @@ -176,9 +176,9 @@ metadata/ID = 3

[node name="Switch_4" type="TextureRect" parent="."]
offset_left = 571.0
offset_top = 875.0
offset_right = 1761.0
offset_bottom = 2065.0
offset_top = 849.0
offset_right = 2032.0
offset_bottom = 2310.0
scale = Vector2(0.048, 0.096)
texture = ExtResource("6_1cxes")
expand_mode = 2
Expand All @@ -188,9 +188,9 @@ metadata/ID = 4

[node name="Switch_5" type="TextureRect" parent="."]
offset_left = 1291.0
offset_top = 875.0
offset_right = 2481.0
offset_bottom = 2065.0
offset_top = 849.0
offset_right = 2752.0
offset_bottom = 2310.0
scale = Vector2(0.048, 0.096)
texture = ExtResource("6_1cxes")
expand_mode = 2
Expand All @@ -200,9 +200,9 @@ metadata/ID = 5

[node name="Switch_6" type="TextureRect" parent="."]
offset_left = 1410.0
offset_top = 875.0
offset_right = 2600.0
offset_bottom = 2065.0
offset_top = 849.0
offset_right = 2871.0
offset_bottom = 2310.0
scale = Vector2(0.048, 0.096)
texture = ExtResource("6_1cxes")
expand_mode = 2
Expand All @@ -212,9 +212,9 @@ metadata/ID = 6

[node name="Switch_7" type="TextureRect" parent="."]
offset_left = 1522.0
offset_top = 875.0
offset_right = 2712.0
offset_bottom = 2065.0
offset_top = 849.0
offset_right = 2983.0
offset_bottom = 2310.0
scale = Vector2(0.048, 0.096)
texture = ExtResource("6_1cxes")
expand_mode = 2
Expand All @@ -224,9 +224,9 @@ metadata/ID = 7

[node name="Switch_8" type="TextureRect" parent="."]
offset_left = 1639.0
offset_top = 875.0
offset_right = 2829.0
offset_bottom = 2065.0
offset_top = 849.0
offset_right = 3100.0
offset_bottom = 2310.0
scale = Vector2(0.048, 0.096)
texture = ExtResource("6_1cxes")
expand_mode = 2
Expand Down
2 changes: 1 addition & 1 deletion Util/Map.gd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func setStuff(arr2, switches2, lamps2):
func createWires():
var minDiff = 40
var minVec = Vector2(0, minDiff)
var minDiffSwitch = 55
var minDiffSwitch = 70
var minswicthVec = Vector2(0, minDiffSwitch)

var levelDistances = (switches[0].getCenterPoint().y - lamps[0].getCenterPoint().y) / lamps.size() - minDiffSwitch + minDiff
Expand Down

0 comments on commit 2271665

Please sign in to comment.