mirror of
https://github.com/mightypanders/GMTKJam2021.git
synced 2025-01-30 21:59:55 +01:00
guest scene
This commit is contained in:
parent
8e499637a1
commit
e3f8f50e12
15
Guest.tscn
15
Guest.tscn
@ -3,7 +3,7 @@
|
|||||||
[ext_resource path="res://assets/placeholder_white.png" type="Texture" id=1]
|
[ext_resource path="res://assets/placeholder_white.png" type="Texture" id=1]
|
||||||
[ext_resource path="res://Guest.gd" type="Script" id=2]
|
[ext_resource path="res://Guest.gd" type="Script" id=2]
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape2D" id=1]
|
[sub_resource type="CapsuleShape2D" id=3]
|
||||||
radius = 6.04475
|
radius = 6.04475
|
||||||
height = 3.32129
|
height = 3.32129
|
||||||
|
|
||||||
@ -13,22 +13,25 @@ radius = 24.5545
|
|||||||
[node name="Guest" type="RigidBody2D" groups=[
|
[node name="Guest" type="RigidBody2D" groups=[
|
||||||
"Guest",
|
"Guest",
|
||||||
]]
|
]]
|
||||||
mode = 2
|
collision_layer = 3
|
||||||
|
collision_mask = 3
|
||||||
|
mass = 10.4357
|
||||||
|
gravity_scale = 128.0
|
||||||
script = ExtResource( 2 )
|
script = ExtResource( 2 )
|
||||||
|
|
||||||
[node name="Sprite" type="Sprite" parent="."]
|
[node name="Sprite" type="Sprite" parent="."]
|
||||||
texture = ExtResource( 1 )
|
texture = ExtResource( 1 )
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
shape = SubResource( 1 )
|
shape = SubResource( 3 )
|
||||||
|
disabled = true
|
||||||
[node name="Joint" type="PinJoint2D" parent="CollisionShape2D"]
|
|
||||||
node_a = NodePath("../..")
|
|
||||||
|
|
||||||
[node name="PickUpArea" type="Area2D" parent="."]
|
[node name="PickUpArea" type="Area2D" parent="."]
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="PickUpArea"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PickUpArea"]
|
||||||
shape = SubResource( 2 )
|
shape = SubResource( 2 )
|
||||||
|
|
||||||
|
[node name="Anchor" type="Position2D" parent="."]
|
||||||
|
|
||||||
[connection signal="area_entered" from="PickUpArea" to="." method="_on_PickUpArea_area_entered"]
|
[connection signal="area_entered" from="PickUpArea" to="." method="_on_PickUpArea_area_entered"]
|
||||||
[connection signal="body_entered" from="PickUpArea" to="." method="_on_PickUpArea_body_entered"]
|
[connection signal="body_entered" from="PickUpArea" to="." method="_on_PickUpArea_body_entered"]
|
||||||
|
Loading…
Reference in New Issue
Block a user