33 lines
952 B
Plaintext
33 lines
952 B
Plaintext
|
[gd_scene load_steps=5 format=2]
|
||
|
|
||
|
[ext_resource path="res://assets/shovel.svg" type="Texture" id=1]
|
||
|
[ext_resource path="res://assets/pirate.svg" type="Texture" id=2]
|
||
|
[ext_resource path="res://scenes/pirate.gd" type="Script" id=3]
|
||
|
|
||
|
[sub_resource type="RectangleShape2D" id=11]
|
||
|
extents = Vector2( 23, 46.5 )
|
||
|
|
||
|
[node name="PlayerChar" type="Node2D"]
|
||
|
script = ExtResource( 3 )
|
||
|
|
||
|
[node name="Pirate" type="Sprite" parent="."]
|
||
|
scale = Vector2( 0.45498, 0.45498 )
|
||
|
texture = ExtResource( 2 )
|
||
|
|
||
|
[node name="Shovel" type="Sprite" parent="."]
|
||
|
visible = false
|
||
|
scale = Vector2( 0.455, 0.455 )
|
||
|
texture = ExtResource( 1 )
|
||
|
|
||
|
[node name="DigTimer" type="Timer" parent="."]
|
||
|
one_shot = true
|
||
|
|
||
|
[node name="Collider" type="Area2D" parent="."]
|
||
|
collision_mask = 2
|
||
|
|
||
|
[node name="ColShape" type="CollisionShape2D" parent="Collider"]
|
||
|
position = Vector2( 4, -1.5 )
|
||
|
shape = SubResource( 11 )
|
||
|
|
||
|
[connection signal="body_entered" from="Collider" to="." method="_on_Collider_body_entered"]
|