From d483fa0d94a117aa63921c72022e781d7a1424e2 Mon Sep 17 00:00:00 2001 From: Paul Methfessel Date: Sun, 6 Dec 2020 10:29:59 +0100 Subject: [PATCH] Add Slope --- 2d/Scene2D.tscn | 135 ++++++++++++++++++++++++++++++++++++++++++------ 2d/Wall.tscn | 2 +- 2 files changed, 119 insertions(+), 18 deletions(-) diff --git a/2d/Scene2D.tscn b/2d/Scene2D.tscn index 0f381bf..cc7cfbe 100644 --- a/2d/Scene2D.tscn +++ b/2d/Scene2D.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=13 format=2] +[gd_scene load_steps=14 format=2] [ext_resource path="res://2d/Player.tscn" type="PackedScene" id=1] [ext_resource path="res://assets/object.png" type="Texture" id=2] @@ -17,6 +17,10 @@ extents = Vector2( 535.011, 43.5632 ) size = 24 font_data = ExtResource( 5 ) +[sub_resource type="DynamicFont" id=4] +size = 90 +font_data = ExtResource( 5 ) + [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 535.011, 43.5632 ) @@ -190,8 +194,34 @@ __meta__ = { "_edit_use_anchors_": false } +[node name="Label5" type="Label" parent="StartRoom"] +margin_left = -7.0 +margin_top = 309.0 +margin_right = 760.0 +margin_bottom = 524.0 +custom_fonts/font = SubResource( 4 ) +text = "Level 1 +The Room" +autowrap = true +__meta__ = { +"_edit_use_anchors_": false +} + [node name="Room2" type="Node2D" parent="."] +[node name="Label4" type="Label" parent="Room2"] +margin_left = 820.013 +margin_top = -74.2245 +margin_right = 1080.01 +margin_bottom = -1.2245 +custom_fonts/font = SubResource( 3 ) +text = "Push to move objects" +align = 1 +autowrap = true +__meta__ = { +"_edit_use_anchors_": false +} + [node name="Wall1" type="StaticBody2D" parent="Room2"] position = Vector2( 710.141, -451.127 ) scale = Vector2( 1.1, 4 ) @@ -298,19 +328,6 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="Label4" type="Label" parent="Room2"] -margin_left = 820.013 -margin_top = -74.2245 -margin_right = 1080.01 -margin_bottom = -1.2245 -custom_fonts/font = SubResource( 3 ) -text = "Push to move objects" -align = 1 -autowrap = true -__meta__ = { -"_edit_use_anchors_": false -} - [node name="MoveableObject" parent="Room2" instance=ExtResource( 4 )] position = Vector2( 1177.84, 62.6746 ) mass = 20.4082 @@ -394,6 +411,21 @@ __meta__ = { [node name="Tower" type="Node2D" parent="."] +[node name="Label8" type="Label" parent="Tower"] +margin_left = 2525.98 +margin_top = -1275.33 +margin_right = 3292.98 +margin_bottom = -1060.33 +rect_rotation = -90.0 +custom_fonts/font = SubResource( 4 ) +text = "Level 2 +The Tower" +align = 2 +autowrap = true +__meta__ = { +"_edit_use_anchors_": false +} + [node name="Bar" parent="Tower" instance=ExtResource( 8 )] position = Vector2( 3068.2, -2208.26 ) rotation = 1.5708 @@ -516,10 +548,71 @@ position = Vector2( 2715.11, -2274.14 ) [node name="Slope" type="Node2D" parent="."] +[node name="Label9" type="Label" parent="Slope"] +margin_left = 5248.65 +margin_top = -4580.64 +margin_right = 6015.65 +margin_bottom = -4365.64 +custom_fonts/font = SubResource( 4 ) +text = "The End (for now)" +align = 2 +autowrap = true +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Label7" type="Label" parent="Slope"] +margin_left = 2777.35 +margin_top = -2121.86 +margin_right = 3048.35 +margin_bottom = -2077.86 +custom_fonts/font = SubResource( 3 ) +text = "Look up!" +align = 1 +autowrap = true +__meta__ = { +"_edit_use_anchors_": false +} + [node name="Wall9" parent="Slope" instance=ExtResource( 9 )] position = Vector2( 3046.62, -2322.64 ) rotation = -1.0472 -scale = Vector2( 1.3, 0.5 ) +scale = Vector2( 2, 6 ) + +[node name="Wall10" parent="Slope" instance=ExtResource( 9 )] +position = Vector2( 4077.99, -4071.01 ) +rotation = -0.0523599 +scale = Vector2( 1, 3 ) + +[node name="Wall11" parent="Slope" instance=ExtResource( 9 )] +position = Vector2( 5101.65, -4497.11 ) +rotation = 1.5708 +scale = Vector2( 0.4, 4 ) + +[node name="Wall14" parent="Slope" instance=ExtResource( 9 )] +position = Vector2( 4656.17, -4497.01 ) +rotation = 0.0 +scale = Vector2( 0.1, 0.5 ) + +[node name="Wall15" parent="Slope" instance=ExtResource( 9 )] +position = Vector2( 4652.6, -4282.95 ) +rotation = 0.0 +scale = Vector2( 0.1, 3 ) + +[node name="Wall13" parent="Slope" instance=ExtResource( 9 )] +position = Vector2( 3505.09, -2311.74 ) +rotation = 1.5708 +scale = Vector2( 1, 5 ) + +[node name="Wall12" parent="Slope" instance=ExtResource( 9 )] +position = Vector2( 4118.57, -4174.82 ) +rotation = 0.0 +scale = Vector2( 0.15, 2 ) + +[node name="Wall16" parent="Slope" instance=ExtResource( 9 )] +position = Vector2( 5094.65, -4496.65 ) +rotation = 0.0 +scale = Vector2( 1, 2 ) [node name="Anchor4" parent="Slope" instance=ExtResource( 3 )] position = Vector2( 3140.07, -2474.7 ) @@ -528,10 +621,18 @@ position = Vector2( 3140.07, -2474.7 ) position = Vector2( 3368.66, -2881.07 ) [node name="Anchor6" parent="Slope" instance=ExtResource( 3 )] -position = Vector2( 3643.32, -3357.32 ) +position = Vector2( 3721.32, -3495.32 ) + +[node name="Anchor7" parent="Slope" instance=ExtResource( 3 )] +position = Vector2( 4705.34, -4455.87 ) + +[node name="MoveableObject2" parent="Slope" instance=ExtResource( 4 )] +position = Vector2( 4672.44, -4581.07 ) +mass = 10.2041 +gravity_scale = 18.0 [node name="Player" parent="." instance=ExtResource( 1 )] -position = Vector2( 138.2, 401.711 ) +position = Vector2( 4402.9, -4197.85 ) gravity_scale = 18.0 [node name="Camera2D" type="Camera2D" parent="Player"] diff --git a/2d/Wall.tscn b/2d/Wall.tscn index c1690f6..28c57a0 100644 --- a/2d/Wall.tscn +++ b/2d/Wall.tscn @@ -3,7 +3,7 @@ [ext_resource path="res://assets/object.png" type="Texture" id=1] [sub_resource type="RectangleShape2D" id=1] -extents = Vector2( 535.011, 43.5632 ) +extents = Vector2( 535.011, 43.2405 ) [node name="Wall9" type="StaticBody2D"] position = Vector2( 3116.11, -2401.27 )