turning box into a scene
This commit is contained in:
1 parent
f9b3966231
commit
f489fda77a
15 files changed
+223
-32
No files matched your search
@@ -0,0 +1,11 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bbr2tfsjefwn3"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4vo4d"]
|
||||
size = Vector2(55, 55)
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" groups=["boxes"]]
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_4vo4d")
|
||||
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
|
||||
@@ -3,9 +3,7 @@
|
||||
[ext_resource type="Script" path="res://scripts/SceneManager.gd" id="1_77wyw"]
|
||||
[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"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4vo4d"]
|
||||
size = Vector2(55, 55)
|
||||
[ext_resource type="PackedScene" uid="uid://bbr2tfsjefwn3" path="res://scenes/crate.tscn" id="4_hkx5g"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cq7kj"]
|
||||
size = Vector2(91, 20)
|
||||
@@ -21,16 +19,6 @@ radius = 60.2993
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("1_77wyw")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="." groups=["boxes"]]
|
||||
position = Vector2(120, 93)
|
||||
rotation = 0.740513
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
rotation = -0.555892
|
||||
shape = SubResource("RectangleShape2D_4vo4d")
|
||||
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
|
||||
|
||||
[node name="groundblock" type="StaticBody2D" parent="."]
|
||||
position = Vector2(117, 384)
|
||||
metadata/_edit_group_ = true
|
||||
@@ -86,5 +74,9 @@ metadata/_edit_group_ = true
|
||||
shape = SubResource("CircleShape2D_x8qck")
|
||||
debug_color = Color(0.556863, 0.415686, 0.964706, 0.419608)
|
||||
|
||||
[node name="Crate" parent="." instance=ExtResource("4_hkx5g")]
|
||||
position = Vector2(141, 131)
|
||||
rotation = 0.663277
|
||||
|
||||
[connection signal="areatrigger" from="Area2D" to="." method="_on_area_2d_areatrigger"]
|
||||
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|
||||
Reference in new issue
Block a user