static body, rigid bodies, character body, area 2d, timer
This commit is contained in:
commit
14f739c428
10 files changed
+206
No files matched your search
@@ -0,0 +1,11 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://63qb2drh1l33"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jflwv"]
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" groups=["box"]]
|
||||
rotation = -2.29882
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_jflwv")
|
||||
debug_color = Color(0.968627, 0.117647, 0.345098, 0.419608)
|
||||
@@ -0,0 +1,65 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://cxnmaxykhbgaq"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://63qb2drh1l33" path="res://scenes/crate.tscn" id="1_0wmww"]
|
||||
[ext_resource type="Script" path="res://scripts/gamecontroller.gd" id="1_5dy8j"]
|
||||
[ext_resource type="Script" path="res://scripts/player.gd" id="2_aq17o"]
|
||||
[ext_resource type="Script" path="res://scripts/Trigger.gd" id="3_4laji"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f1luk"]
|
||||
size = Vector2(172, 20)
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_y4y41"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_k1pyx"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_wdyhk"]
|
||||
radius = 34.1321
|
||||
|
||||
[node name="game" type="Node2D"]
|
||||
script = ExtResource("1_5dy8j")
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
position = Vector2(302, 266)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
shape = SubResource("RectangleShape2D_f1luk")
|
||||
|
||||
[node name="RigidBody2D" parent="." instance=ExtResource("1_0wmww")]
|
||||
position = Vector2(297, 129)
|
||||
rotation = 0.688747
|
||||
|
||||
[node name="RigidBody2D2" parent="." instance=ExtResource("1_0wmww")]
|
||||
position = Vector2(391, 64)
|
||||
rotation = 0.358379
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
position = Vector2(286, 181)
|
||||
script = ExtResource("2_aq17o")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
shape = SubResource("CircleShape2D_y4y41")
|
||||
debug_color = Color(0.752941, 0.211765, 0.984314, 0.419608)
|
||||
|
||||
[node name="StaticBody2D2" type="StaticBody2D" parent="."]
|
||||
position = Vector2(299, 490)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2"]
|
||||
shape = SubResource("WorldBoundaryShape2D_k1pyx")
|
||||
|
||||
[node name="Trigger" type="Area2D" parent="."]
|
||||
position = Vector2(439, 460)
|
||||
script = ExtResource("3_4laji")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Trigger"]
|
||||
shape = SubResource("CircleShape2D_wdyhk")
|
||||
debug_color = Color(0.466667, 0.592157, 0, 0.419608)
|
||||
|
||||
[node name="RigidBody2D3" parent="." instance=ExtResource("1_0wmww")]
|
||||
position = Vector2(256, 39)
|
||||
|
||||
[connection signal="alert" from="Trigger" to="." method="_on_trigger_alert"]
|
||||
[connection signal="body_entered" from="Trigger" to="Trigger" method="_on_body_entered"]
|
||||
Reference in new issue
Block a user