GMTKJam2021/Guest.tscn

68 lines
1.8 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=8 format=2]
2021-06-12 02:05:15 +02:00
2021-06-13 00:24:45 +02:00
[ext_resource path="res://assets/Figur1.png" type="Texture" id=1]
2021-06-12 02:05:15 +02:00
[ext_resource path="res://Guest.gd" type="Script" id=2]
[ext_resource path="res://assets/Sam.png" type="Texture" id=3]
2021-06-12 02:05:15 +02:00
[sub_resource type="PhysicsMaterial" id=1]
2021-06-12 23:08:11 +02:00
absorbent = true
[sub_resource type="CircleShape2D" id=2]
radius = 124.702
2021-06-12 15:04:04 +02:00
2021-06-13 00:45:26 +02:00
[sub_resource type="CapsuleShape2D" id=3]
radius = 6.0
height = 9.75
2021-06-13 00:45:26 +02:00
[sub_resource type="CapsuleShape2D" id=4]
radius = 8.02541
height = 10.5115
2021-06-12 02:05:15 +02:00
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
2021-06-12 23:08:11 +02:00
mass = 10.0
physics_material_override = SubResource( 1 )
2021-06-12 23:08:11 +02:00
gravity_scale = 0.0
angular_damp = 100.0
2021-06-12 02:05:15 +02:00
script = ExtResource( 2 )
__meta__ = {
"_edit_horizontal_guides_": [ ]
}
2021-06-12 02:05:15 +02:00
2021-06-12 15:04:04 +02:00
[node name="ExclusionZone" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="ExclusionZone"]
modulate = Color( 0.0823529, 1, 0.027451, 1 )
show_behind_parent = true
shape = SubResource( 2 )
2021-06-12 19:59:12 +02:00
disabled = true
2021-06-12 02:05:15 +02:00
[node name="SpriteMarkus" type="Sprite" parent="."]
visible = false
2021-06-13 00:24:45 +02:00
scale = Vector2( 0.1, 0.1 )
2021-06-12 02:05:15 +02:00
texture = ExtResource( 1 )
[node name="SpriteSam" type="Sprite" parent="."]
visible = false
scale = Vector2( 0.25, 0.25 )
texture = ExtResource( 3 )
[node name="PhysicsCollision" type="CollisionShape2D" parent="."]
2021-06-13 00:45:26 +02:00
modulate = Color( 0, 1, 0.976471, 1 )
shape = SubResource( 3 )
2021-06-12 13:39:49 +02:00
2021-06-12 02:05:15 +02:00
[node name="PickUpArea" type="Area2D" parent="."]
2021-06-13 00:45:26 +02:00
modulate = Color( 1, 0, 0.984314, 1 )
2021-06-12 23:27:46 +02:00
scale = Vector2( 2.76, 2.6 )
2021-06-12 02:05:15 +02:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="PickUpArea"]
shape = SubResource( 4 )
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"]