fuzzyworld

godot-shooter / starfield-background / files / Enemy.tscn

Branch starfield-background · default branch · all branches

Enemy.tscn

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

b856550a 2023-10-30 Pavel Safronov1[gd_scene load_steps=3 format=2]
2
3[ext_resource path="res://kenney_simple-space/PNG/Default/enemy_A.png" type="Texture" id=1]
4[ext_resource path="res://Enemy.gd" type="Script" id=2]
5
6[node name="Enemy" type="KinematicBody2D"]
7script = ExtResource( 2 )
8
9[node name="Graphics" type="Node2D" parent="."]
10
11[node name="Alive" type="Sprite" parent="Graphics"]
12texture = ExtResource( 1 )
13
614e7fb1 2023-10-31 Pavel Safronov14[node name="Container" type="Node2D" parent="Graphics/Alive"]
15
16[node name="HealthLabel" type="Label" parent="Graphics/Alive/Container"]
17margin_left = -25.0
18margin_top = 37.0
19margin_right = 25.0
20margin_bottom = 51.0
21text = "HEALTH"
22
b856550a 2023-10-30 Pavel Safronov23[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
24visible = false
25polygon = PoolVector2Array( 0, -23, -7, 5, -12, 9, -19, 9, -23, 14, -23, 19, -19, 23, -14, 23, -9, 18, -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 )
26
27[node name="RayCast2D" type="RayCast2D" parent="."]
28cast_to = Vector2( 0, -50 )