big four game objects week1

This commit is contained in:
OddlyTimbot committed 2024-08-26 21:18:54 -04:00
1 parent bb54e57e78
commit e166158206
10 files changed
+217

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
[gd_scene load_steps=2 format=3 uid="uid://0j0320rcnxo7"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_3vc5e"]
[node name="RigidBody2D" type="RigidBody2D"]
position = Vector2(546, 329)
rotation = 0.879359
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_3vc5e")
debug_color = Color(0.838874, 0.379869, 0.162504, 0.42)
+80
View File
@@ -0,0 +1,80 @@
[gd_scene load_steps=7 format=3 uid="uid://diss5ty7548p3"]
[ext_resource type="PackedScene" uid="uid://0j0320rcnxo7" path="res://scenes/crate.tscn" id="1_8ekmb"]
[ext_resource type="Script" path="res://scripts/player.gd" id="2_8vtyd"]
[ext_resource type="PackedScene" uid="uid://csewven6s5npw" path="res://scenes/trigger.tscn" id="3_t3xge"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_byea1"]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_nl2iw"]
[sub_resource type="CircleShape2D" id="CircleShape2D_mcosy"]
[node name="World" type="Node2D"]
[node name="Platform" type="StaticBody2D" parent="."]
position = Vector2(537, 386)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Platform"]
shape = SubResource("RectangleShape2D_byea1")
[node name="Platform4" type="StaticBody2D" parent="."]
position = Vector2(494, 449)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Platform4"]
shape = SubResource("RectangleShape2D_byea1")
[node name="Platform5" type="StaticBody2D" parent="."]
position = Vector2(452, 489)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Platform5"]
shape = SubResource("RectangleShape2D_byea1")
[node name="Platform2" type="StaticBody2D" parent="."]
position = Vector2(623, 386)
scale = Vector2(3.16, 1)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Platform2"]
shape = SubResource("RectangleShape2D_byea1")
[node name="Platform3" type="StaticBody2D" parent="."]
position = Vector2(728, 383)
rotation = -0.701015
scale = Vector2(3.16, 1)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Platform3"]
shape = SubResource("RectangleShape2D_byea1")
[node name="Floor" type="StaticBody2D" parent="."]
position = Vector2(535, 511)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Floor"]
shape = SubResource("WorldBoundaryShape2D_nl2iw")
[node name="RigidBody2D" parent="." instance=ExtResource("1_8ekmb")]
[node name="RigidBody2D2" parent="." instance=ExtResource("1_8ekmb")]
position = Vector2(540, 175)
rotation = -0.0302685
[node name="RigidBody2D3" parent="." instance=ExtResource("1_8ekmb")]
position = Vector2(626, 349)
rotation = 0.872828
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
position = Vector2(537, 362)
script = ExtResource("2_8vtyd")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
shape = SubResource("CircleShape2D_mcosy")
debug_color = Color(0.826895, 0.282133, 0.703752, 0.42)
[node name="Area2D" parent="." instance=ExtResource("3_t3xge")]
position = Vector2(739, 500)
+18
View File
@@ -0,0 +1,18 @@
[gd_scene load_steps=3 format=3 uid="uid://csewven6s5npw"]
[ext_resource type="Script" path="res://scripts/trigger.gd" id="1_p2ca0"]
[sub_resource type="CircleShape2D" id="CircleShape2D_0lmpd"]
radius = 71.1126
[node name="Area2D" type="Area2D"]
position = Vector2(667, 433)
script = ExtResource("1_p2ca0")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_0lmpd")
debug_color = Color(0.262567, 0.618632, 0.400323, 0.42)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="body_exited" from="." to="." method="_on_body_exited"]