Skip to content

Commit

Permalink
Merge pull request #116 from TheSecondReal0/map-system-2-electric-boo…
Browse files Browse the repository at this point in the history
…galoo

Improve map info storage
  • Loading branch information
TheSecondReal0 authored Oct 19, 2020
2 parents 3994905 + 3d5d3fd commit d3778ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/assets/main/main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var player_scene = load(player_s)
var players = {}
#!!!THIS IS IMPORTANT!!!
#INCREASE THIS VARIABLE BY ONE EVERY COMMIT TO PREVENT OLD CLIENTS FROM TRYING TO CONNECT TO SERVERS!!!
var version = 4
var version = 5
var intruders = 0
var errdc = false
onready var config = ConfigFile.new()
Expand Down
4 changes: 2 additions & 2 deletions src/assets/main/maps.gd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
extends Node2D

var maps: Dictionary = {"lobby": preload("res://assets/maps/lobby/lobby.tscn"), "test": preload("res://assets/maps/test/test.tscn")}
var maps: Dictionary = {"lobby": {"dir": preload("res://assets/maps/lobby/lobby.tscn")}, "test": {"dir": preload("res://assets/maps/test/test.tscn")}}

var currentMap: String = "lobby"

Expand All @@ -21,5 +21,5 @@ puppet func switchMap(newMap: String):
for i in get_children():
i.queue_free()
currentMap = newMap
var mapClone = maps[newMap].instance()
var mapClone = maps[newMap].dir.instance()
add_child(mapClone)

0 comments on commit d3778ac

Please sign in to comment.