cleaning up week 2 final example
This commit is contained in:
parent
15548d7ff3
commit
accd65888b
@ -172,4 +172,4 @@ Anim={
|
|||||||
"zfar": 4000.01,
|
"zfar": 4000.01,
|
||||||
"znear": 0.05
|
"znear": 0.05
|
||||||
}
|
}
|
||||||
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17140/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9462/@VSplitContainer@9281/@HSplitContainer@9283/@HSplitContainer@9285/@Control@9286/@SubViewportContainer@9287/@SubViewport@9288/Area2D")])
|
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17140/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9462/@VSplitContainer@9281/@HSplitContainer@9283/@HSplitContainer@9285/@Control@9286/@SubViewportContainer@9287/@SubViewport@9288/Game/RigidBody2D")])
|
||||||
|
@ -172,4 +172,4 @@ Anim={
|
|||||||
"zfar": 4000.01,
|
"zfar": 4000.01,
|
||||||
"znear": 0.05
|
"znear": 0.05
|
||||||
}
|
}
|
||||||
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17140/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9462/@VSplitContainer@9281/@HSplitContainer@9283/@HSplitContainer@9285/@Control@9286/@SubViewportContainer@9287/@SubViewport@9288/Area2D")])
|
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17140/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9462/@VSplitContainer@9281/@HSplitContainer@9283/@HSplitContainer@9285/@Control@9286/@SubViewportContainer@9287/@SubViewport@9288/Game/RigidBody2D")])
|
||||||
|
@ -172,4 +172,4 @@ Anim={
|
|||||||
"zfar": 4000.01,
|
"zfar": 4000.01,
|
||||||
"znear": 0.05
|
"znear": 0.05
|
||||||
}
|
}
|
||||||
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17140/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9462/@VSplitContainer@9281/@HSplitContainer@9283/@HSplitContainer@9285/@Control@9286/@SubViewportContainer@9287/@SubViewport@9288/Area2D")])
|
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17140/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9462/@VSplitContainer@9281/@HSplitContainer@9283/@HSplitContainer@9285/@Control@9286/@SubViewportContainer@9287/@SubViewport@9288/Game/RigidBody2D")])
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[folding]
|
[folding]
|
||||||
|
|
||||||
node_unfolds=[NodePath("."), PackedStringArray("Transform"), NodePath("StaticBody2D"), PackedStringArray("Transform"), NodePath("RigidBody2D"), PackedStringArray("Transform"), NodePath("RigidBody2D/CollisionShape2D"), PackedStringArray("Transform"), NodePath("RigidBody2D/CollisionShape2D2"), PackedStringArray("Transform"), NodePath("groundblock"), PackedStringArray("Transform"), NodePath("groundblock/CollisionShape2D"), PackedStringArray("Transform"), NodePath("groundblock2"), PackedStringArray("Transform"), NodePath("groundblock2/CollisionShape2D"), PackedStringArray("Transform"), NodePath("level/groundblock2"), PackedStringArray("Transform"), NodePath("level/groundblock2/CollisionShape2D"), PackedStringArray("Transform"), NodePath("level/groundblock3"), PackedStringArray("Transform"), NodePath("level/groundblock3/CollisionShape2D"), PackedStringArray("Transform"), NodePath("Area2D"), PackedStringArray("Transform")]
|
node_unfolds=[NodePath("."), PackedStringArray("Transform"), NodePath("RigidBody2D"), PackedStringArray("Transform"), NodePath("RigidBody2D/CollisionShape2D"), PackedStringArray("Transform"), NodePath("groundblock"), PackedStringArray("Transform"), NodePath("groundblock/CollisionShape2D"), PackedStringArray("Transform"), NodePath("groundblock2"), PackedStringArray("Transform"), NodePath("groundblock2/CollisionShape2D"), PackedStringArray("Transform"), NodePath("level/groundblock2"), PackedStringArray("Transform"), NodePath("level/groundblock2/CollisionShape2D"), PackedStringArray("Transform"), NodePath("level/groundblock3"), PackedStringArray("Transform"), NodePath("level/groundblock3/CollisionShape2D"), PackedStringArray("Transform"), NodePath("level/StaticBody2D"), PackedStringArray("Transform"), NodePath("Area2D"), PackedStringArray("Transform")]
|
||||||
resource_unfolds=["res://scenes/game.tscn::WorldBoundaryShape2D_3u4a8", PackedStringArray("Resource"), "res://scenes/game.tscn::RectangleShape2D_4vo4d", PackedStringArray("Resource"), "res://scenes/game.tscn::RectangleShape2D_cq7kj", PackedStringArray("Resource"), "res://scenes/game.tscn::CircleShape2D_x8qck", PackedStringArray("Resource")]
|
resource_unfolds=["res://scenes/game.tscn::RectangleShape2D_4vo4d", PackedStringArray("Resource"), "res://scenes/game.tscn::RectangleShape2D_cq7kj", PackedStringArray("Resource"), "res://scenes/game.tscn::WorldBoundaryShape2D_3u4a8", PackedStringArray("Resource"), "res://scenes/game.tscn::CircleShape2D_x8qck", PackedStringArray("Resource")]
|
||||||
nodes_folded=[]
|
nodes_folded=[]
|
||||||
|
@ -4,57 +4,26 @@
|
|||||||
[ext_resource type="PackedScene" uid="uid://go4yc8hfo1gq" path="res://scenes/character.tscn" id="2_64ccm"]
|
[ext_resource type="PackedScene" uid="uid://go4yc8hfo1gq" path="res://scenes/character.tscn" id="2_64ccm"]
|
||||||
[ext_resource type="Script" path="res://scripts/Trigger.gd" id="2_nfj1w"]
|
[ext_resource type="Script" path="res://scripts/Trigger.gd" id="2_nfj1w"]
|
||||||
|
|
||||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_3u4a8"]
|
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4vo4d"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4vo4d"]
|
||||||
size = Vector2(55, 55)
|
size = Vector2(55, 55)
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cq7kj"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cq7kj"]
|
||||||
size = Vector2(91, 20)
|
size = Vector2(91, 20)
|
||||||
|
|
||||||
|
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_3u4a8"]
|
||||||
|
|
||||||
[sub_resource type="CircleShape2D" id="CircleShape2D_x8qck"]
|
[sub_resource type="CircleShape2D" id="CircleShape2D_x8qck"]
|
||||||
radius = 60.2993
|
radius = 60.2993
|
||||||
|
|
||||||
[node name="Game" type="Node2D"]
|
[node name="Game" type="Node2D"]
|
||||||
script = ExtResource("1_77wyw")
|
script = ExtResource("1_77wyw")
|
||||||
|
|
||||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
|
||||||
position = Vector2(236, 415)
|
|
||||||
metadata/_edit_group_ = true
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
|
||||||
shape = SubResource("WorldBoundaryShape2D_3u4a8")
|
|
||||||
|
|
||||||
[node name="RigidBody2D" type="RigidBody2D" parent="." groups=["boxes"]]
|
[node name="RigidBody2D" type="RigidBody2D" parent="." groups=["boxes"]]
|
||||||
position = Vector2(139, 35)
|
position = Vector2(120, 93)
|
||||||
rotation = 0.740513
|
rotation = 0.740513
|
||||||
metadata/_edit_group_ = true
|
metadata/_edit_group_ = true
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||||
position = Vector2(206.535, 208.174)
|
|
||||||
rotation = -0.555892
|
|
||||||
shape = SubResource("RectangleShape2D_4vo4d")
|
|
||||||
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
|
|
||||||
|
|
||||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="RigidBody2D"]
|
|
||||||
position = Vector2(206.535, 208.174)
|
|
||||||
rotation = -0.555892
|
|
||||||
shape = SubResource("RectangleShape2D_4vo4d")
|
|
||||||
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
|
|
||||||
|
|
||||||
[node name="RigidBody2D2" type="RigidBody2D" parent="." groups=["boxes"]]
|
|
||||||
position = Vector2(409, -6)
|
|
||||||
rotation = 0.740513
|
|
||||||
metadata/_edit_group_ = true
|
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D2"]
|
|
||||||
position = Vector2(206.535, 208.174)
|
|
||||||
rotation = -0.555892
|
|
||||||
shape = SubResource("RectangleShape2D_4vo4d")
|
|
||||||
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
|
|
||||||
|
|
||||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="RigidBody2D2"]
|
|
||||||
position = Vector2(206.535, 208.174)
|
|
||||||
rotation = -0.555892
|
rotation = -0.555892
|
||||||
shape = SubResource("RectangleShape2D_4vo4d")
|
shape = SubResource("RectangleShape2D_4vo4d")
|
||||||
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
|
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
|
||||||
@ -94,7 +63,15 @@ metadata/_edit_group_ = true
|
|||||||
position = Vector2(-1.5, 0)
|
position = Vector2(-1.5, 0)
|
||||||
shape = SubResource("RectangleShape2D_cq7kj")
|
shape = SubResource("RectangleShape2D_cq7kj")
|
||||||
|
|
||||||
|
[node name="StaticBody2D" type="StaticBody2D" parent="level"]
|
||||||
|
position = Vector2(236, 415)
|
||||||
|
metadata/_edit_group_ = true
|
||||||
|
|
||||||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/StaticBody2D"]
|
||||||
|
shape = SubResource("WorldBoundaryShape2D_3u4a8")
|
||||||
|
|
||||||
[node name="CharacterBody2D" parent="." groups=["player"] instance=ExtResource("2_64ccm")]
|
[node name="CharacterBody2D" parent="." groups=["player"] instance=ExtResource("2_64ccm")]
|
||||||
|
position = Vector2(36, 225)
|
||||||
PUSH_FORCE = 550
|
PUSH_FORCE = 550
|
||||||
|
|
||||||
[node name="Area2D" type="Area2D" parent="."]
|
[node name="Area2D" type="Area2D" parent="."]
|
||||||
|
Loading…
Reference in New Issue
Block a user