54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://Fish/Fish.png" type="Texture" id=1]
|
|
[ext_resource path="res://Fish/Fish.gd" type="Script" id=2]
|
|
|
|
[sub_resource type="CapsuleShape2D" id=1]
|
|
radius = 17.0
|
|
height = 88.0
|
|
|
|
[sub_resource type="CapsuleShape2D" id=2]
|
|
radius = 21.0
|
|
height = 100.0
|
|
|
|
[node name="Fish" type="KinematicBody2D"]
|
|
collision_layer = 2
|
|
collision_mask = 28
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
position = Vector2( -26, 7 )
|
|
scale = Vector2( 0.1, 0.1 )
|
|
texture = ExtResource( 1 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
visible = false
|
|
position = Vector2( -18, 3 )
|
|
rotation = 1.5708
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="Hitbox" type="Area2D" parent="." groups=["Fish"]]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
|
|
position = Vector2( -18, 3 )
|
|
rotation = 1.5708
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="SwimTimer" type="Timer" parent="."]
|
|
autostart = true
|
|
|
|
[node name="Tween" type="Tween" parent="."]
|
|
|
|
[node name="Positions" type="Node2D" parent="."]
|
|
|
|
[node name="Mouth" type="Position2D" parent="Positions"]
|
|
position = Vector2( 50, 13 )
|
|
|
|
[node name="MouthInhale" type="Position2D" parent="Positions"]
|
|
position = Vector2( 79, 15 )
|
|
|
|
[node name="Tail" type="Position2D" parent="Positions"]
|
|
position = Vector2( -72, 0 )
|
|
|
|
[connection signal="timeout" from="SwimTimer" to="." method="_on_SwimTimer_timeout"]
|