Add basic enemy behavior and spawning system
The changes introduce enemy mechanics and management - including spawning, movement patterns, shooting timers, and death handling.
This commit is contained in:
parent
85155b1c7d
commit
996a0bb8f7
8 changed files with 300 additions and 7 deletions
|
|
@ -1,6 +1,7 @@
|
|||
[gd_scene load_steps=14 format=3 uid="uid://bkuucjejc7p2v"]
|
||||
[gd_scene load_steps=15 format=3 uid="uid://bkuucjejc7p2v"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c7fe5pl54gkem" path="res://scenes/player.gd" id="1_qlg0r"]
|
||||
[ext_resource type="PackedScene" uid="uid://bus77xvomweiu" path="res://scenes/bullet.tscn" id="2_fjrip"]
|
||||
[ext_resource type="Texture2D" uid="uid://di2xhcwcdbhxg" path="res://resources/Mini Pixel Pack 3/Player ship/Player_ship (16 x 16).png" id="2_tuyoq"]
|
||||
[ext_resource type="Texture2D" uid="uid://ces8fm7lxh574" path="res://resources/Mini Pixel Pack 3/Player ship/Boosters (16 x 16).png" id="3_fjrip"]
|
||||
[ext_resource type="Texture2D" uid="uid://bjdhq42ummgky" path="res://resources/Mini Pixel Pack 3/Player ship/Boosters_left (16 x 16).png" id="4_smehm"]
|
||||
|
|
@ -71,6 +72,7 @@ size = Vector2(14, 14)
|
|||
|
||||
[node name="Player" type="Area2D"]
|
||||
script = ExtResource("1_qlg0r")
|
||||
bullet_scene = ExtResource("2_fjrip")
|
||||
|
||||
[node name="Ship" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("2_tuyoq")
|
||||
|
|
@ -87,7 +89,7 @@ autoplay = "forward"
|
|||
shape = SubResource("RectangleShape2D_w3w6i")
|
||||
|
||||
[node name="GunCooldown" type="Timer" parent="."]
|
||||
wait_time = 0.001
|
||||
wait_time = 0.24
|
||||
one_shot = true
|
||||
|
||||
[connection signal="timeout" from="GunCooldown" to="." method="_on_gun_cooldown_timeout"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue