Finished working on the minimap system for the test level, shows pawns, enemy and friendly traps, and unfinished 'items'

This commit is contained in:
2026-01-19 00:46:32 -05:00
parent bc48e9cea2
commit b69691c186
26 changed files with 375 additions and 26 deletions

View File

@@ -3,26 +3,32 @@ extends Control
@onready var menu_list : Array = [
{
"option": %STORY,
"mode" : Game.Modes.STORY,
"scene" : preload("res://scenes/character_select.tscn")
},
{
"option": %"VS-COM",
"mode" : Game.Modes.VS_COM,
"scene" : preload("res://scenes/character_select.tscn")
},
{
"option": %"VS-MAN",
"mode" : Game.Modes.VS_MAN,
"scene" : preload("res://scenes/multiplayer_setup.tscn")
},
{
"option": %STORY,
"mode" : Game.Modes.STORY,
"scene" : preload("res://scenes/character_select.tscn")
},
{
"option": %RECORD,
"mode" : Game.Modes.STORY,
"scene" : preload("res://scenes/character_select.tscn")
},
{
"option": %OPTION,
"mode" : Game.Modes.STORY,
"scene" : preload("res://scenes/character_select.tscn")
}
]
@@ -60,7 +66,6 @@ func _process(delta: float) -> void:
switch_menu(0)
if opened:
var menu_dir = 0
menu_dir += 1 if Input.is_action_just_pressed("ui_down") else 0
menu_dir -= 1 if Input.is_action_just_pressed("ui_up") else 0
@@ -68,6 +73,7 @@ func _process(delta: float) -> void:
switch_sound.play()
switch_menu(wrapi(menu_choice + menu_dir, 0, len(menu_list)))
if Input.is_action_just_pressed("ui_accept"):
Game.mode = menu_list[menu_choice].mode
Game.switch_scene(menu_list[menu_choice].scene, false)