Finished working on the minimap system for the test level, shows pawns, enemy and friendly traps, and unfinished 'items'
This commit is contained in:
@@ -1,15 +1,24 @@
|
||||
extends Node
|
||||
|
||||
|
||||
enum Modes{
|
||||
STORY,
|
||||
VS_COM,
|
||||
VS_MAN
|
||||
}
|
||||
|
||||
const blinder_template = preload("res://templates/blinder.tscn")
|
||||
const one_shot_template = preload("res://templates/one_shot.tscn")
|
||||
|
||||
const story_level = preload("res://scenes/test_level.tscn")
|
||||
const vs_com_level = preload("res://scenes/test_level.tscn")
|
||||
const vs_man_level = preload("res://scenes/test_level.tscn")
|
||||
const pawn_select_scene = preload("res://scenes/character_select.tscn")
|
||||
|
||||
var player : PawnController
|
||||
var hud : HUD
|
||||
var level : Level
|
||||
var mode : Modes = Modes.STORY
|
||||
var multiplayer_game : bool = false
|
||||
var num_players : int = 1
|
||||
var pawns_selected : Dictionary[int, PawnBaseData] = {}
|
||||
@@ -47,7 +56,13 @@ func start_level(pawns : Dictionary[int, PawnBaseData]) -> void:
|
||||
for i in Multiplayer.players.values():
|
||||
level_synced[i] = false
|
||||
level_synced[1] = true
|
||||
switch_scene(vs_man_level)
|
||||
match(mode):
|
||||
Modes.STORY:
|
||||
switch_scene(story_level, false)
|
||||
Modes.VS_COM:
|
||||
switch_scene(vs_com_level, false)
|
||||
Modes.VS_MAN:
|
||||
switch_scene(vs_man_level)
|
||||
|
||||
func switch_scene(packed_scene : PackedScene, spawn : bool = true) -> void:
|
||||
var blinder = blinder_template.instantiate() as TextureRect
|
||||
|
||||
Reference in New Issue
Block a user