-
Notifications
You must be signed in to change notification settings - Fork 1
/
Fish.tscn
60 lines (42 loc) · 1.4 KB
/
Fish.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[gd_scene load_steps=4 format=2]
[ext_resource path="res://fish.gd" type="Script" id=1]
[ext_resource path="res://fish-o.svg" type="Texture" id=2]
[sub_resource type="CapsuleShape2D" id=1]
custom_solver_bias = 0.0
radius = 13.5808
height = 24.2133
[node name="Fish" type="KinematicBody2D"]
editor/display_folded = true
input_pickable = false
collision_layer = 1
collision_mask = 1
collision/safe_margin = 0.08
script = ExtResource( 1 )
_sections_unfolded = [ "Transform" ]
__meta__ = {
"_edit_group_": true
}
[node name="FishArea" type="Area2D" parent="." index="0"]
input_pickable = true
gravity_vec = Vector2( 0, 1 )
gravity = 0.0
linear_damp = 0.1
angular_damp = 1.0
audio_bus_override = false
audio_bus_name = "Master"
[node name="AreaDetect" type="CollisionShape2D" parent="FishArea" index="0"]
rotation = 1.5708
shape = SubResource( 1 )
_sections_unfolded = [ "Transform" ]
[node name="Sprite" type="Sprite" parent="." index="1"]
scale = Vector2( 0.5, 0.5 )
texture = ExtResource( 2 )
_sections_unfolded = [ "Transform" ]
[node name="Visible" type="VisibilityNotifier2D" parent="Sprite" index="0"]
scale = Vector2( 2, 2 )
rect = Rect2( -10, -10, 20, 20 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="." index="2"]
rotation = 1.5708
shape = SubResource( 1 )
_sections_unfolded = [ "Transform" ]
[connection signal="area_shape_entered" from="FishArea" to="." method="_on_Area2D_area_shape_entered"]