main game objects week one
This commit is contained in:
1 parent
85f2ba102e
commit
8428eebd76
11 files changed
+215
No files matched your search
@@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bq1tvv23y61by"]
|
||||
|
||||
[ext_resource type="Script" path="res://Sripts/crate.gd" id="1_4l5o6"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_amdo7"]
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D"]
|
||||
position = Vector2(555, 296)
|
||||
rotation = 0.785817
|
||||
script = ExtResource("1_4l5o6")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_amdo7")
|
||||
debug_color = Color(0.941176, 0.454902, 0, 0.796078)
|
||||
@@ -0,0 +1,62 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bnrrbkgwh35jy"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bq1tvv23y61by" path="res://Scenes/Crate.tscn" id="1_8ldta"]
|
||||
[ext_resource type="Script" path="res://Sripts/player.gd" id="2_2yqxe"]
|
||||
[ext_resource type="PackedScene" uid="uid://cb1km20mpc3ag" path="res://Scenes/Trigger.tscn" id="3_sr8fi"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_flxcs"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_6fyfv"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_t5iiu"]
|
||||
|
||||
[node name="World" type="Node2D"]
|
||||
|
||||
[node name="BottomWorld" type="StaticBody2D" parent="."]
|
||||
position = Vector2(-1, 650)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="BottomWorld"]
|
||||
shape = SubResource("WorldBoundaryShape2D_flxcs")
|
||||
|
||||
[node name="platform" type="StaticBody2D" parent="."]
|
||||
position = Vector2(554, 322)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="platform"]
|
||||
shape = SubResource("RectangleShape2D_6fyfv")
|
||||
|
||||
[node name="platform2" type="StaticBody2D" parent="."]
|
||||
position = Vector2(478, 381)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="platform2"]
|
||||
shape = SubResource("RectangleShape2D_6fyfv")
|
||||
|
||||
[node name="platform3" type="StaticBody2D" parent="."]
|
||||
position = Vector2(384, 429)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="platform3"]
|
||||
shape = SubResource("RectangleShape2D_6fyfv")
|
||||
|
||||
[node name="RigidBody2D" parent="." instance=ExtResource("1_8ldta")]
|
||||
position = Vector2(554, 291)
|
||||
|
||||
[node name="RigidBody2D2" parent="." instance=ExtResource("1_8ldta")]
|
||||
position = Vector2(381, 149)
|
||||
|
||||
[node name="RigidBody2D3" parent="." instance=ExtResource("1_8ldta")]
|
||||
position = Vector2(380, 182)
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
position = Vector2(381, 396)
|
||||
script = ExtResource("2_2yqxe")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
shape = SubResource("CircleShape2D_t5iiu")
|
||||
debug_color = Color(0, 1, 0, 0.662745)
|
||||
|
||||
[node name="Area2D" parent="." instance=ExtResource("3_sr8fi")]
|
||||
position = Vector2(683, 645)
|
||||
@@ -0,0 +1,18 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://cb1km20mpc3ag"]
|
||||
|
||||
[ext_resource type="Script" path="res://Sripts/trigger.gd" id="1_ui4mb"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_78odg"]
|
||||
radius = 84.1487
|
||||
|
||||
[node name="Area2D" type="Area2D"]
|
||||
position = Vector2(713, 545)
|
||||
script = ExtResource("1_ui4mb")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_78odg")
|
||||
debug_color = Color(0.726981, 0.524365, 0.0999245, 0.831373)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
|
||||
Reference in new issue
Block a user