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
|
|
@ -1,9 +1,10 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://ce5rw02b3373d"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://ce5rw02b3373d"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b2tub370i3s3v" path="res://scenes/main.gd" id="1_jyhfs"]
|
||||
[ext_resource type="Texture2D" uid="uid://jj8b7vqj3ihx" path="res://resources/Mini Pixel Pack 3/Space_BG (2 frames) (64 x 64).png" id="2_tbgi4"]
|
||||
[ext_resource type="PackedScene" uid="uid://bkuucjejc7p2v" path="res://scenes/player.tscn" id="3_tefeu"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4vq2ytntfvoj" path="res://scenes/enemy.tscn" id="4_o6xl0"]
|
||||
[ext_resource type="PackedScene" uid="uid://k0yw686ys6ug" path="res://scenes/ui.tscn" id="5_tbgi4"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_vcsgt"]
|
||||
length = 0.001
|
||||
|
|
@ -62,3 +63,11 @@ libraries = {
|
|||
autoplay = "scroll"
|
||||
|
||||
[node name="Enemy" parent="." instance=ExtResource("4_o6xl0")]
|
||||
position = Vector2(-13, 3)
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="UI" parent="CanvasLayer" instance=ExtResource("5_tbgi4")]
|
||||
|
||||
[connection signal="area_entered" from="Player" to="Player" method="_on_area_entered"]
|
||||
[connection signal="shield_changed" from="Player" to="CanvasLayer/UI" method="update_shield"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue