GMTKJam2021/Guest.tscn

35 lines
1003 B
Plaintext

[gd_scene load_steps=5 format=2]
[ext_resource path="res://assets/placeholder_white.png" type="Texture" id=1]
[ext_resource path="res://Guest.gd" type="Script" id=2]
[sub_resource type="CapsuleShape2D" id=1]
radius = 6.04475
height = 3.32129
[sub_resource type="CircleShape2D" id=2]
radius = 24.5545
[node name="Guest" type="RigidBody2D" groups=[
"Guest",
]]
mode = 2
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="Joint" type="PinJoint2D" parent="CollisionShape2D"]
node_a = NodePath("../..")
[node name="PickUpArea" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="PickUpArea"]
shape = SubResource( 2 )
[connection signal="area_entered" from="PickUpArea" to="." method="_on_PickUpArea_area_entered"]
[connection signal="body_entered" from="PickUpArea" to="." method="_on_PickUpArea_body_entered"]