static body, rigid body, characterbody. area, signals
This commit is contained in:
commit
4dada35f76
13 files changed
+216
No files matched your search
@@ -0,0 +1,74 @@
|
||||
[gd_scene format=3 uid="uid://bcisk0tho1stb"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b4efh8nwneqkf" path="res://Scripts/player.gd" id="1_ebmjs"]
|
||||
[ext_resource type="Script" uid="uid://ctdwfmqkny8rc" path="res://Scripts/game controller.gd" id="1_qxrlw"]
|
||||
[ext_resource type="Script" uid="uid://kb3v21msvi17" path="res://Scripts/trigger.gd" id="3_wrm1d"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2poj3"]
|
||||
size = Vector2(82, 20)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ebmjs"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_2poj3"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_2poj3"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_3dryh"]
|
||||
radius = 18.110771
|
||||
|
||||
[node name="Game" type="Node2D" unique_id=1323011736]
|
||||
script = ExtResource("1_qxrlw")
|
||||
|
||||
[node name="platfrom" type="StaticBody2D" parent="." unique_id=446401574]
|
||||
position = Vector2(399, 122)
|
||||
constant_linear_velocity = Vector2(10, 0)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="platfrom" unique_id=1022493365]
|
||||
shape = SubResource("RectangleShape2D_2poj3")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="." unique_id=193574446]
|
||||
position = Vector2(360, 27.000004)
|
||||
rotation = -1.7350631
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D" unique_id=73164979]
|
||||
shape = SubResource("RectangleShape2D_ebmjs")
|
||||
debug_color = Color(0.8238579, 0.39945692, 0.031017382, 0.41960785)
|
||||
|
||||
[node name="RigidBody2D2" type="RigidBody2D" parent="." unique_id=1977575109]
|
||||
position = Vector2(428.99997, 26)
|
||||
rotation = 0.54410887
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D2" unique_id=1267574160]
|
||||
shape = SubResource("RectangleShape2D_ebmjs")
|
||||
debug_color = Color(0.8238579, 0.39945692, 0.031017382, 0.41960785)
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=1443311972]
|
||||
position = Vector2(402, 247)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=1935948289]
|
||||
shape = SubResource("WorldBoundaryShape2D_2poj3")
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="." unique_id=793835080]
|
||||
position = Vector2(399, 75)
|
||||
script = ExtResource("1_ebmjs")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D" unique_id=75435339]
|
||||
shape = SubResource("CircleShape2D_2poj3")
|
||||
debug_color = Color(0.25014314, 0.63459045, 0.102719225, 0.41960785)
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="." unique_id=1630381885]
|
||||
position = Vector2(447, 155)
|
||||
script = ExtResource("3_wrm1d")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=180262903]
|
||||
shape = SubResource("CircleShape2D_3dryh")
|
||||
debug_color = Color(0.77940935, 0.23498747, 0.906131, 0.41960785)
|
||||
|
||||
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|
||||
[connection signal="triggerActiveSignal" from="Area2D" to="." method="_on_triggerSignal"]
|
||||
Reference in new issue
Block a user