GMTKJam2021/Guest.tscn

38 lines
1.0 KiB
Plaintext
Raw Normal View History

2021-06-12 02:05:15 +02:00
[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]
2021-06-12 19:11:34 +02:00
[sub_resource type="CapsuleShape2D" id=3]
2021-06-12 02:05:15 +02:00
radius = 6.04475
height = 3.32129
2021-06-12 11:29:30 +02:00
[sub_resource type="CircleShape2D" id=2]
2021-06-12 02:05:15 +02:00
radius = 24.5545
2021-06-12 13:39:49 +02:00
[node name="Guest" type="RigidBody2D" groups=[
2021-06-12 11:29:30 +02:00
"Guest",
]]
2021-06-12 19:11:34 +02:00
collision_layer = 3
collision_mask = 3
mass = 10.4357
gravity_scale = 128.0
2021-06-12 02:05:15 +02:00
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
2021-06-12 19:11:34 +02:00
shape = SubResource( 3 )
disabled = true
2021-06-12 13:39:49 +02:00
2021-06-12 02:05:15 +02:00
[node name="PickUpArea" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="PickUpArea"]
2021-06-12 11:29:30 +02:00
shape = SubResource( 2 )
2021-06-12 02:05:15 +02:00
2021-06-12 19:11:34 +02:00
[node name="Anchor" type="Position2D" parent="."]
2021-06-12 02:05:15 +02:00
[connection signal="area_entered" from="PickUpArea" to="." method="_on_PickUpArea_area_entered"]
[connection signal="body_entered" from="PickUpArea" to="." method="_on_PickUpArea_body_entered"]