added new health bar and new energy pip bar
This commit is contained in:
@@ -22,7 +22,7 @@ var game_active: bool = false
|
||||
var gamemode: GameMode = null
|
||||
var level: Level
|
||||
var enemies: int = 0
|
||||
var objective_health: int = 120
|
||||
var objective_health: int = Data.starting_lives
|
||||
var wave: int
|
||||
var pot: float
|
||||
var UILayer: CanvasLayer
|
||||
@@ -38,24 +38,6 @@ var starting_blanks: int = 0
|
||||
var connected_player_profiles: Dictionary = {}
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
UILayer = CanvasLayer.new()
|
||||
UILayer.layer = 2
|
||||
root_scene.add_child.call_deferred(UILayer)
|
||||
var version_label: Label = Label.new()
|
||||
var version: String = ProjectSettings.get_setting("application/config/version")
|
||||
version_label.text = "WORK IN PROGRESS | ALPHA - VERSION " + version + " | PLAYTEST"
|
||||
version_label.vertical_alignment = VERTICAL_ALIGNMENT_CENTER
|
||||
version_label.horizontal_alignment = HORIZONTAL_ALIGNMENT_CENTER
|
||||
version_label.theme_type_variation = "VersionLabel"
|
||||
#version_label.add_theme_font_size_override("font_size", 18)
|
||||
#version_label.add_theme_color_override("font_color", Color(0.85, 0.85, 0.85, 0.7))
|
||||
version_label.set_anchors_preset(Control.PRESET_TOP_WIDE)
|
||||
UILayer.add_child(version_label)
|
||||
Input.set_custom_mouse_cursor(load("res://Assets/Textures/cursor_none.png"), Input.CURSOR_ARROW, Vector2(9, 6))
|
||||
Input.set_custom_mouse_cursor(load("res://Assets/Textures/bracket_b_vertical.png"), Input.CURSOR_IBEAM, Vector2(16, 16))
|
||||
|
||||
|
||||
func parse_command(text: String, peer_id: int) -> void:
|
||||
if text.substr(1, 4) == "give":
|
||||
var gift_name: String = text.substr(6) as String
|
||||
@@ -295,7 +277,7 @@ func setup() -> void:
|
||||
#Set starting parameters
|
||||
game_active = false
|
||||
enemies = 0
|
||||
objective_health = 120
|
||||
objective_health = Data.starting_lives
|
||||
wave = 1
|
||||
stats = RoundStats.new()
|
||||
game_setup.emit()
|
||||
|
||||
Reference in New Issue
Block a user