fuzzyworld

godot-shooter / godot-4-testing / files / Enemy.tscn

Branch godot-4-testing · default branch · all branches

Enemy.tscn

1012 B · history · blame

1[gd_scene load_steps=3 format=2]
2
3[ext_resource path="res://kenney_simple-space/PNG/Default/enemy_A.png" type="Texture2D" id=1]
4[ext_resource path="res://Enemy.gd" type="Script" id=2]
5
6[node name="Enemy" type="CharacterBody2D"]
7script = ExtResource( 2 )
8
9[node name="Graphics" type="Node2D" parent="."]
10
11[node name="Alive" type="Sprite2D" parent="Graphics"]
12texture = ExtResource( 1 )
13
14[node name="Container" type="Node2D" parent="Graphics/Alive"]
15
16[node name="HealthLabel" type="Label" parent="Graphics/Alive/Container"]
17offset_left = -25.0
18offset_top = 37.0
19offset_right = 25.0
20offset_bottom = 51.0
21text = "HEALTH"
22
23[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
24visible = false
25polygon = PackedVector2Array( 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="."]
28target_position = Vector2( 0, -50 )