fuzzyworld

godot-shooter / asteroids / files / actors / Enemy.tscn

Branch asteroids · default branch · all branches

Enemy.tscn

Blame: the commit that last changed each line · file · history

3dea036b 2024-12-23 Pavel Safronov1[gd_scene load_steps=13 format=2]
b856550a 2023-10-30 Pavel Safronov2
16938031 2023-11-17 Pavel Safronov3[ext_resource path="res://effects/Trails.tscn" type="PackedScene" id=2]
4[ext_resource path="res://actors/Enemy.gd" type="Script" id=3]
5[ext_resource path="res://assets/kenney_simple-space/PNG/Default/enemy_A.png" type="Texture" id=4]
6[ext_resource path="res://assets/kenney_crosshair-pack/PNG/White Retina/crosshair041.png" type="Texture" id=5]
04130db8 2023-11-07 Pavel Safronov7
8[sub_resource type="Gradient" id=4]
9colors = PoolColorArray( 0, 0, 0, 0, 1, 0, 0, 1 )
b856550a 2023-10-30 Pavel Safronov10
8adb41dc 2023-11-19 Pavel Safronov11[sub_resource type="StyleBoxFlat" id=5]
12bg_color = Color( 1, 1, 1, 1 )
13
14[sub_resource type="StyleBoxFlat" id=6]
15bg_color = Color( 0.211765, 0.211765, 0.211765, 1 )
16
cf2013fa 2023-11-02 Pavel Safronov17[sub_resource type="Animation" id=1]
adab6dc8 2023-11-02 Pavel Safronov18length = 3.0
969fd5af 2023-11-06 Pavel Safronov19
539576dd 2023-11-07 Pavel Safronov20[sub_resource type="Animation" id=3]
21resource_name = "fade_in"
22tracks/0/type = "value"
23tracks/0/path = NodePath(".:modulate")
24tracks/0/interp = 1
25tracks/0/loop_wrap = true
26tracks/0/imported = false
27tracks/0/enabled = true
28tracks/0/keys = {
023ec2fb 2023-11-29 Pavel Safronov29"times": PoolRealArray( 0, 1 ),
539576dd 2023-11-07 Pavel Safronov30"transitions": PoolRealArray( 1, 1 ),
31"update": 0,
32"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
33}
34tracks/1/type = "value"
35tracks/1/path = NodePath(".:scale")
36tracks/1/interp = 1
37tracks/1/loop_wrap = true
38tracks/1/imported = false
39tracks/1/enabled = true
40tracks/1/keys = {
023ec2fb 2023-11-29 Pavel Safronov41"times": PoolRealArray( -0.2, 1 ),
539576dd 2023-11-07 Pavel Safronov42"transitions": PoolRealArray( 1, 1 ),
43"update": 0,
44"values": [ Vector2( 0.01, 0.01 ), Vector2( 1, 1 ) ]
45}
46
969fd5af 2023-11-06 Pavel Safronov47[sub_resource type="Animation" id=2]
48resource_name = "fade_out"
04130db8 2023-11-07 Pavel Safronov49length = 3.0
adab6dc8 2023-11-02 Pavel Safronov50tracks/0/type = "value"
51tracks/0/path = NodePath(".:modulate")
cf2013fa 2023-11-02 Pavel Safronov52tracks/0/interp = 1
53tracks/0/loop_wrap = true
54tracks/0/imported = false
55tracks/0/enabled = true
56tracks/0/keys = {
04130db8 2023-11-07 Pavel Safronov57"times": PoolRealArray( 0, 3 ),
adab6dc8 2023-11-02 Pavel Safronov58"transitions": PoolRealArray( 1, 1 ),
59"update": 0,
60"values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
cf2013fa 2023-11-02 Pavel Safronov61}
adab6dc8 2023-11-02 Pavel Safronov62tracks/1/type = "method"
63tracks/1/path = NodePath(".")
cf2013fa 2023-11-02 Pavel Safronov64tracks/1/interp = 1
65tracks/1/loop_wrap = true
66tracks/1/imported = false
67tracks/1/enabled = true
68tracks/1/keys = {
04130db8 2023-11-07 Pavel Safronov69"times": PoolRealArray( 3 ),
cf2013fa 2023-11-02 Pavel Safronov70"transitions": PoolRealArray( 1 ),
adab6dc8 2023-11-02 Pavel Safronov71"values": [ {
72"args": [ ],
969fd5af 2023-11-06 Pavel Safronov73"method": "remove_thyself"
adab6dc8 2023-11-02 Pavel Safronov74} ]
cf2013fa 2023-11-02 Pavel Safronov75}
04130db8 2023-11-07 Pavel Safronov76tracks/2/type = "value"
8adb41dc 2023-11-19 Pavel Safronov77tracks/2/path = NodePath("Graphics/Alive/Sprite/Trails:alpha")
04130db8 2023-11-07 Pavel Safronov78tracks/2/interp = 1
79tracks/2/loop_wrap = true
80tracks/2/imported = false
81tracks/2/enabled = true
82tracks/2/keys = {
83"times": PoolRealArray( 0, 3 ),
84"transitions": PoolRealArray( 1, 1 ),
85"update": 0,
86"values": [ 1.0, 0.0 ]
87}
cf2013fa 2023-11-02 Pavel Safronov88
3dea036b 2024-12-23 Pavel Safronov89[sub_resource type="Gradient" id=7]
90colors = PoolColorArray( 1, 0, 0, 1, 1, 0, 0, 0 )
91
92[sub_resource type="GradientTexture" id=8]
93gradient = SubResource( 7 )
94
b856550a 2023-10-30 Pavel Safronov95[node name="Enemy" type="KinematicBody2D"]
61fbb9f6 2023-11-09 Pavel Safronov96z_index = 10
9c3981ff 2023-11-14 Pavel Safronov97collision_layer = 2
023ec2fb 2023-11-29 Pavel Safronov98collision_mask = 11
16938031 2023-11-17 Pavel Safronov99script = ExtResource( 3 )
b856550a 2023-10-30 Pavel Safronov100
101[node name="Graphics" type="Node2D" parent="."]
102
8adb41dc 2023-11-19 Pavel Safronov103[node name="Alive" type="Node2D" parent="Graphics"]
614e7fb1 2023-10-31 Pavel Safronov104
8adb41dc 2023-11-19 Pavel Safronov105[node name="Sprite" type="Sprite" parent="Graphics/Alive"]
106modulate = Color( 1, 0.470588, 0, 1 )
107texture = ExtResource( 4 )
614e7fb1 2023-10-31 Pavel Safronov108
8adb41dc 2023-11-19 Pavel Safronov109[node name="Target" type="Sprite" parent="Graphics/Alive/Sprite"]
6ad40cea 2023-12-01 Pavel Safronov110modulate = Color( 1, 0, 0, 0.643137 )
16938031 2023-11-17 Pavel Safronov111texture = ExtResource( 5 )
1d4ba5a6 2023-11-02 Pavel Safronov112
8adb41dc 2023-11-19 Pavel Safronov113[node name="Trails" parent="Graphics/Alive/Sprite" instance=ExtResource( 2 )]
04130db8 2023-11-07 Pavel Safronov114gradient = SubResource( 4 )
115
8adb41dc 2023-11-19 Pavel Safronov116[node name="Container" type="Node2D" parent="Graphics/Alive"]
117
118[node name="ProgressBar" type="ProgressBar" parent="Graphics/Alive/Container"]
119margin_left = -50.0
120margin_top = 45.0
121margin_right = 50.0
2b4497bb 2023-11-27 Pavel Safronov122margin_bottom = 50.0
123rect_min_size = Vector2( 100, 5 )
8adb41dc 2023-11-19 Pavel Safronov124custom_styles/fg = SubResource( 5 )
125custom_styles/bg = SubResource( 6 )
126value = 30.0
127percent_visible = false
128
cf2013fa 2023-11-02 Pavel Safronov129[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
130anims/RESET = SubResource( 1 )
539576dd 2023-11-07 Pavel Safronov131anims/fade_in = SubResource( 3 )
cf2013fa 2023-11-02 Pavel Safronov132anims/fade_out = SubResource( 2 )
133
134[node name="DamagePoints" type="Node2D" parent="."]
8adb41dc 2023-11-19 Pavel Safronov135visible = false
cf2013fa 2023-11-02 Pavel Safronov136
137[node name="Position2D" type="Position2D" parent="DamagePoints"]
138position = Vector2( -16, 16 )
139
140[node name="Position2D4" type="Position2D" parent="DamagePoints"]
141position = Vector2( 0, -13 )
142
143[node name="Position2D2" type="Position2D" parent="DamagePoints"]
144position = Vector2( 16, 16 )
b856550a 2023-10-30 Pavel Safronov145
115aa5d1 2023-11-07 Pavel Safronov146[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
147polygon = PoolVector2Array( 0, -23, -7, 5, -12, 9, -19, 9, -23, 14, -23, 19, -19, 23, -14, 23, -9, 19, -9, 14, -10, 12, -6, 9, 0, 15, 6, 9, 10, 12, 9, 14, 9, 19, 13, 23, 18, 23, 23, 18, 23, 14, 19, 10, 13, 10, 7, 5 )
8adb41dc 2023-11-19 Pavel Safronov148
149[node name="DamageObjects" type="Node2D" parent="."]
023ec2fb 2023-11-29 Pavel Safronov150
151[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
50d0dc8b 2023-12-21 Pavel Safronov152path_desired_distance = 10.0
6ad40cea 2023-12-01 Pavel Safronov153navigation_layers = 3
154avoidance_enabled = true
50d0dc8b 2023-12-21 Pavel Safronov155radius = 40.0
156max_neighbors = 20
157time_horizon = 30.0
6ad40cea 2023-12-01 Pavel Safronov158max_speed = 50.0
3dea036b 2024-12-23 Pavel Safronov159
160[node name="ViewconePolygon2D" type="Polygon2D" parent="."]
161texture = SubResource( 8 )
162texture_scale = Vector2( 7, 1 )
163texture_rotation_degrees = 90.0
164polygon = PoolVector2Array( -1, 0, -182, -330, 165, -330 )