feat: Implement core game mechanics including player, enemies, bullets, HUD, and level setup.
This commit is contained in:
33
scenes/enemy.tscn
Normal file
33
scenes/enemy.tscn
Normal file
@@ -0,0 +1,33 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://enemy1234567"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/enemy.gd" id="1_enemy"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxvveyvfp8gmq" path="res://assets/cat_tank_hull.png" id="2_hull"]
|
||||
[ext_resource type="Texture2D" uid="uid://ddktwa3t2dnlv" path="res://assets/cat_tank_turret.png" id="3_turret"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_enemy"]
|
||||
radius = 24.0
|
||||
|
||||
[node name="Enemy" type="CharacterBody2D"]
|
||||
script = ExtResource("1_enemy")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
modulate = Color(1, 0.5, 0.5, 1)
|
||||
rotation = 1.5707964
|
||||
texture = ExtResource("2_hull")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_enemy")
|
||||
|
||||
[node name="Turret" type="Node2D" parent="."]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Turret"]
|
||||
modulate = Color(1, 0.5, 0.5, 1)
|
||||
rotation = 1.5707964
|
||||
texture = ExtResource("3_turret")
|
||||
|
||||
[node name="HealthBar" type="ProgressBar" parent="."]
|
||||
offset_left = -24.0
|
||||
offset_top = -40.0
|
||||
offset_right = 24.0
|
||||
offset_bottom = -34.0
|
||||
show_percentage = false
|
||||
Reference in New Issue
Block a user