big four game objects, timer, signals, week1
This commit is contained in:
commit
25288b722b
10 files changed
+235
No files matched your search
@@ -0,0 +1,10 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://dqsi0p3t8k43x"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cy60b"]
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D"]
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_cy60b")
|
||||
debug_color = Color(0.759516, 0.445609, 0.223627, 0.42)
|
||||
@@ -0,0 +1,76 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://csqvvi0t51tkk"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dqsi0p3t8k43x" path="res://Scenes/crate.tscn" id="1_34u55"]
|
||||
[ext_resource type="Script" path="res://Scripts/gamecontroller.gd" id="1_pru2w"]
|
||||
[ext_resource type="Script" path="res://Scripts/charactercontroller.gd" id="2_543ck"]
|
||||
[ext_resource type="Script" path="res://Scripts/Trigger.gd" id="3_wy0yn"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_nbgu3"]
|
||||
size = Vector2(34, 14)
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_rywi2"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_n1jqc"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_5gjsm"]
|
||||
radius = 60.0167
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
script = ExtResource("1_pru2w")
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
position = Vector2(565, 283)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
shape = SubResource("RectangleShape2D_nbgu3")
|
||||
|
||||
[node name="RigidBody2D" parent="." instance=ExtResource("1_34u55")]
|
||||
position = Vector2(515, 226)
|
||||
rotation = -0.722934
|
||||
|
||||
[node name="RigidBody2D2" parent="." instance=ExtResource("1_34u55")]
|
||||
position = Vector2(508, 126)
|
||||
rotation = 0.295972
|
||||
|
||||
[node name="RigidBody2D3" parent="." instance=ExtResource("1_34u55")]
|
||||
position = Vector2(427, 201)
|
||||
rotation = -2.25067
|
||||
|
||||
[node name="RigidBody2D4" parent="." instance=ExtResource("1_34u55")]
|
||||
position = Vector2(436, 259)
|
||||
|
||||
[node name="RigidBody2D5" parent="." instance=ExtResource("1_34u55")]
|
||||
position = Vector2(365, 241)
|
||||
rotation = -0.505816
|
||||
|
||||
[node name="RigidBody2D6" parent="." instance=ExtResource("1_34u55")]
|
||||
position = Vector2(378, 136)
|
||||
rotation = 0.727138
|
||||
|
||||
[node name="Floor" type="StaticBody2D" parent="."]
|
||||
position = Vector2(-5, 363)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Floor"]
|
||||
shape = SubResource("WorldBoundaryShape2D_rywi2")
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
position = Vector2(571, 162)
|
||||
script = ExtResource("2_543ck")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
shape = SubResource("CircleShape2D_n1jqc")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
position = Vector2(663, 356)
|
||||
script = ExtResource("3_wy0yn")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
shape = SubResource("CircleShape2D_5gjsm")
|
||||
debug_color = Color(0.772082, 0.385918, 0.576998, 0.42)
|
||||
|
||||
[connection signal="areaTrigger" from="Area2D" to="." method="_on_trigger"]
|
||||
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|
||||
Reference in new issue
Block a user