Added shield and score UI; player collision signal connected to enemy
This commit is contained in:
parent
996a0bb8f7
commit
8175e1469d
17 changed files with 321 additions and 15 deletions
22
scenes/EnemyBullet.tscn
Normal file
22
scenes/EnemyBullet.tscn
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://pwikm8fsvc2p"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://denqaif0c3kk2" path="res://scenes/EnemyBullet.gd" id="1_s6wdq"]
|
||||
[ext_resource type="Texture2D" uid="uid://dubjbfdp6ep34" path="res://resources/Mini Pixel Pack 3/Projectiles/Enemy_projectile (16 x 16).png" id="2_la4vt"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_eoqba"]
|
||||
size = Vector2(6, 6)
|
||||
|
||||
[node name="EnemyBullet" type="Area2D"]
|
||||
script = ExtResource("1_s6wdq")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("2_la4vt")
|
||||
hframes = 4
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_eoqba")
|
||||
|
||||
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
|
||||
|
||||
[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