29 lines
1,005 B
Text
29 lines
1,005 B
Text
[gd_scene load_steps=6 format=2]
|
|
|
|
[ext_resource path="res://Sprites/Water/Jug.png" type="Texture" id=1]
|
|
[ext_resource path="res://Scripts/WaterThing.gd" type="Script" id=2]
|
|
[ext_resource path="res://Sounds/Sfxr/punch.sfxr" type="AudioStream" id=3]
|
|
[ext_resource path="res://Sounds/Sfxr/break.sfxr" type="AudioStream" id=4]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 5, 6 )
|
|
|
|
[node name="Jug" type="Area2D"]
|
|
scale = Vector2( 0.5, 0.5 )
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
texture = ExtResource( 1 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2( 1, 0 )
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="PunchPlayer" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource( 3 )
|
|
|
|
[node name="BreakPlayer" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource( 4 )
|
|
|
|
[connection signal="area_entered" from="." to="." method="_on_body_entered"]
|
|
[connection signal="area_exited" from="." to="." method="_on_body_exited"]
|