add energy mechanic to sg2083
This commit is contained in:
parent
fd10cfca8c
commit
e0e56d3ffa
5 changed files with 53 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=8 format=2]
|
||||
[gd_scene load_steps=9 format=2]
|
||||
|
||||
[ext_resource path="res://objects/enemy/boss/sg2083.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://tilesets/t_laboratory.tres" type="TileSet" id=2]
|
||||
|
@ -7,10 +7,12 @@
|
|||
[ext_resource path="res://ui/theme.tres" type="Theme" id=5]
|
||||
[ext_resource path="res://tilesets/t_station.tres" type="TileSet" id=6]
|
||||
[ext_resource path="res://cutscenes/fami_cutscene.tscn" type="PackedScene" id=7]
|
||||
[ext_resource path="res://objects/lore/boss/fami.tscn" type="PackedScene" id=8]
|
||||
|
||||
[node name="Map" type="Node2D" groups=["map"]]
|
||||
pause_mode = 1
|
||||
script = ExtResource( 3 )
|
||||
lore_entries = [ ExtResource( 8 ) ]
|
||||
|
||||
[node name="GUI" type="CanvasLayer" parent="."]
|
||||
|
||||
|
@ -25,6 +27,25 @@ margin_bottom = 192.0
|
|||
size_flags_horizontal = 3
|
||||
alignment = 2
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="GUI/Control/VBoxContainer"]
|
||||
margin_top = 168.0
|
||||
margin_right = 126.0
|
||||
margin_bottom = 178.0
|
||||
|
||||
[node name="Label" type="Label" parent="GUI/Control/VBoxContainer/HBoxContainer2"]
|
||||
margin_right = 49.0
|
||||
margin_bottom = 10.0
|
||||
text = " Energy"
|
||||
|
||||
[node name="SGEnergy" type="HSlider" parent="GUI/Control/VBoxContainer/HBoxContainer2"]
|
||||
unique_name_in_owner = true
|
||||
margin_left = 53.0
|
||||
margin_right = 126.0
|
||||
margin_bottom = 10.0
|
||||
size_flags_horizontal = 3
|
||||
value = 100.0
|
||||
scrollable = false
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="GUI/Control/VBoxContainer"]
|
||||
margin_top = 182.0
|
||||
margin_right = 126.0
|
||||
|
@ -92,9 +113,12 @@ position = Vector2( 0, 12 )
|
|||
famira_path = NodePath("../Famira")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="2083"]
|
||||
position = Vector2( 0, -4 )
|
||||
offset = Vector2( 0, -8 )
|
||||
anchor_mode = 0
|
||||
current = true
|
||||
limit_top = 8
|
||||
limit_bottom = 192
|
||||
|
||||
[node name="Famira" parent="." instance=ExtResource( 4 )]
|
||||
visible = false
|
||||
|
@ -102,5 +126,6 @@ position = Vector2( 160, 179 )
|
|||
sg2083_path = NodePath("../2083")
|
||||
|
||||
[connection signal="cutscene_finished" from="FamiCutscene" to="." method="_on_cutscene_finished"]
|
||||
[connection signal="energy_changed" from="2083" to="." method="_on_2083_energy_changed"]
|
||||
[connection signal="health_changed" from="2083" to="." method="_on_2083_health_changed"]
|
||||
[connection signal="health_changed" from="Famira" to="." method="_on_Famira_health_changed"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue