Updated pattern for boss; trying to get it to spawn bullets.
This commit is contained in:
parent
caf2bffb0c
commit
e608652170
24 changed files with 606 additions and 28 deletions
22
scenes/boss_bullet.tscn
Normal file
22
scenes/boss_bullet.tscn
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
[gd_scene format=3 uid="uid://dvjyo1xwrg3m7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://d15l4y8332rni" path="res://scenes/boss_bullet.gd" id="1_i5ved"]
|
||||
[ext_resource type="Texture2D" uid="uid://dubjbfdp6ep34" path="res://_graphics/Mini Pixel Pack 3/Projectiles/Enemy_projectile (16 x 16).png" id="2_borja"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_gl7bs"]
|
||||
size = Vector2(6, 6)
|
||||
|
||||
[node name="BossBullet" type="Area2D" unique_id=722316887 groups=["enemy_bullets"]]
|
||||
script = ExtResource("1_i5ved")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1936412719]
|
||||
texture = ExtResource("2_borja")
|
||||
hframes = 4
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=2029704873]
|
||||
shape = SubResource("RectangleShape2D_gl7bs")
|
||||
|
||||
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="." unique_id=1574374158]
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue