47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
[gd_scene load_steps=6 format=2]
|
|
|
|
[ext_resource path="res://assets/car/Autoi cut.png" type="Texture" id=1]
|
|
[ext_resource path="res://Playa.gd" type="Script" id=2]
|
|
|
|
[sub_resource type="CapsuleShape2D" id=1]
|
|
radius = 13.0017
|
|
height = 19.9256
|
|
|
|
[sub_resource type="CapsuleShape2D" id=2]
|
|
radius = 12.9279
|
|
height = 25.8183
|
|
|
|
[sub_resource type="CapsuleShape2D" id=3]
|
|
radius = 5.0
|
|
height = 4.0
|
|
|
|
[node name="Playa" type="KinematicBody2D" groups=[
|
|
"Player",
|
|
]]
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
rotation = 3.14159
|
|
scale = Vector2( 0.1, 0.1 )
|
|
texture = ExtResource( 1 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="PickupCheckArea" type="Area2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PickupCheckArea"]
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="Anchor" type="Area2D" parent="."]
|
|
position = Vector2( 0, 25 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Anchor"]
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="Joint" type="PinJoint2D" parent="Anchor/CollisionShape2D"]
|
|
node_a = NodePath("../../..")
|
|
softness = 2.0
|
|
|
|
[connection signal="area_entered" from="PickupCheckArea" to="." method="_on_PickupCheckArea_area_entered"]
|