Working profile names in-game, basic settings save/load system, flag drops on player death

This commit is contained in:
Squinty 2024-04-16 21:39:08 +00:00
parent 94b7ee0a53
commit 3640aeb4cf
12 changed files with 122 additions and 67 deletions

View file

@ -1,15 +1,15 @@
# This file is part of open-fpsz.
#
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
extends Node2D
@ -28,7 +28,7 @@ func _process(_delta):
else:
_v_box_container.show()
_player_name_label.text = player.name
_player_name_label.text = player.nickname
position = camera.unproject_position(attach_point.global_position)
var viewport_size : Vector2 = get_viewport_rect().size
position.x = clampf(position.x, 0, viewport_size.x - _v_box_container.size.x)