/
Club.tscn
32 lines (24 loc) · 944 Bytes
/
Club.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[gd_scene load_steps=6 format=2]
[ext_resource path="res://Sprites/club.png" type="Texture" id=1]
[ext_resource path="res://Sprites/club_hit.png" type="Texture" id=2]
[ext_resource path="res://Club.gd" type="Script" id=3]
[ext_resource path="res://Sounds/swing.wav" type="AudioStream" id=4]
[sub_resource type="CapsuleShape2D" id=1]
radius = 13.0
height = 66.0
[node name="Club" type="Area2D"]
script = ExtResource( 3 )
[node name="SpriteStowed" type="Sprite" parent="."]
texture = ExtResource( 1 )
[node name="SpriteHit" type="Sprite" parent="."]
visible = false
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 32, -33 )
rotation = 0.785398
shape = SubResource( 1 )
disabled = true
[node name="SwingPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 4 )
volume_db = -10.0
[connection signal="area_entered" from="." to="." method="_on_Club_area_entered"]