Debug console cleanup
This commit is contained in:
parent
5fffb666d6
commit
742db5ee8c
|
|
@ -66,7 +66,9 @@ var current_se_index :String
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
var sound_index = current_state.name + str(current_state.animation_frame)
|
var sound_index = current_state.name + str(current_state.animation_frame)
|
||||||
if current_se_index != sound_index and sound_effects_dict.has(sound_index):
|
if current_se_index != sound_index and sound_effects_dict.has(sound_index):
|
||||||
print("Play sound: ", current_state.name, current_state.animation_frame)
|
if debug_component:
|
||||||
|
print (get_path())
|
||||||
|
print("\tPlay sound: ", current_state.name, current_state.animation_frame)
|
||||||
current_se_index = sound_index
|
current_se_index = sound_index
|
||||||
##TODO: Better to do an is check here or a cast
|
##TODO: Better to do an is check here or a cast
|
||||||
## We already assure these are SE_StateFrames
|
## We already assure these are SE_StateFrames
|
||||||
|
|
|
||||||
|
|
@ -38,10 +38,10 @@ func _ready():
|
||||||
# I think we only want to do this for network master players now
|
# I think we only want to do this for network master players now
|
||||||
if is_network_master():
|
if is_network_master():
|
||||||
player_info_index = PlayerInfo.register_player()
|
player_info_index = PlayerInfo.register_player()
|
||||||
print ("Registered as player: ", player_info_index)
|
if debug_actor:
|
||||||
|
print ("Registered as player: ", player_info_index)
|
||||||
player_data = PlayerInfo.get_player_data(player_info_index)
|
player_data = PlayerInfo.get_player_data(player_info_index)
|
||||||
PlayerInfo.get_player_data(player_info_index).player_health = health_component.health
|
PlayerInfo.get_player_data(player_info_index).player_health = health_component.health
|
||||||
print ("My health is: ", player_data.player_health)
|
|
||||||
player_data.player_inventory = player_inventory
|
player_data.player_inventory = player_inventory
|
||||||
player_data.player_stamina = stamina_component.stamina
|
player_data.player_stamina = stamina_component.stamina
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,6 @@ sound_effects = [ SubResource( 4 ), SubResource( 5 ), SubResource( 6 ) ]
|
||||||
position = Vector2( 0, 2 )
|
position = Vector2( 0, 2 )
|
||||||
shape = SubResource( 1 )
|
shape = SubResource( 1 )
|
||||||
script = ExtResource( 31 )
|
script = ExtResource( 31 )
|
||||||
debug_component = true
|
|
||||||
callable_state_machine = NodePath("../Movement_StateMachine")
|
callable_state_machine = NodePath("../Movement_StateMachine")
|
||||||
|
|
||||||
[node name="Health_Component" parent="." index="8" instance=ExtResource( 17 )]
|
[node name="Health_Component" parent="." index="8" instance=ExtResource( 17 )]
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,12 @@ onready var _secondary_item_count = $SecondaryItem/Label
|
||||||
var _player_number :int
|
var _player_number :int
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready():
|
#func _ready():
|
||||||
if primary_item == null:
|
# if primary_item == null:
|
||||||
print("--------WTF is going oN")
|
# print("--------WTF is going oN")
|
||||||
else:
|
# else:
|
||||||
print("----------thats find. ")
|
# print("----------thats find. ")
|
||||||
pass
|
# pass
|
||||||
#secondary_item.texture = PlayerInfo.player_inventory.secondary_selection.inventory_icon
|
#secondary_item.texture = PlayerInfo.player_inventory.secondary_selection.inventory_icon
|
||||||
|
|
||||||
func set_player_number(_player_num: int) -> void:
|
func set_player_number(_player_num: int) -> void:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user