Milestone 9 Development

This commit is contained in:
patrick_pluto 2024-08-31 14:58:41 +02:00
commit 785bbd8f05
83 changed files with 1089 additions and 4525 deletions

View file

@ -1,17 +1,23 @@
## freeftf
## Copyright (C) 2024 Patrick_Pluto
## FreeFTF
## Copyright (C) 2024 Interstellar Development
##
## 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 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.
## 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/>.
## 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 Control
var elevated = false
var done
var map_name = "mansion"
func _ready():
$player_customization/name.text = Game.settings["username"]
@ -58,7 +64,8 @@ func _process(_delta):
func _on_start_pressed():
for id in Game.player_list:
if Game.map_name == "test" && Game.player_list.size() <= 5:
for id in Game.player_list:
Client.rpc_id(id,"start_game")
func _input(_event):
@ -82,11 +89,11 @@ func _on_connected_ok():
func _on_option_button_item_selected(index):
match index:
0:
map_name = "mansion"
Game.map_name = "test"
_:
map_name = "mansion"
Game.map_name = "test"
for id in Game.player_list:
Client.rpc_id(id, "sync_level", map_name)
Client.rpc_id(id, "sync_level", Game.map_name)
func _sync_options(id):
Client.rpc_id(id, "sync_level", map_name)
Client.rpc_id(id, "sync_level", Game.map_name)