forked from Kehom/gdMultiplayerTutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgamestate.gd
More file actions
26 lines (19 loc) · 826 Bytes
/
gamestate.gd
File metadata and controls
26 lines (19 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This source code is provided as reference/companion material for the Godot Multiplayer Setup tutorial
# that can be freely found at http://kehomsforge.com and should not be commercialized
# in any form. It should remain free!
#
# By Yuri Sarudiansky
extends Node
var player_info = {
name = "Player", # How this player will be shown within the GUI
net_id = 1, # By default everyone receives "server" ID
actor_path = "res://player.tscn", # The class used to represent the player in the game world
char_color = Color(1, 1, 1), # By default don't modulate the icon color
}
var spawned_bots = 0
var bot_info = {}
func _ready():
randomize()
# Initialize the bot list
for id in range(1, 16):
bot_info[id] = { name = "Bot_" + str(id), actor_path = "res://bot.tscn" }