7380161743
Version bump to 2.3.6. New game mode features 20×20 arena with central cannon obstacle, three escalating phases (Open Arena, Route Pressure, Survival), and collectible tiles (Hearts, Diamonds, Stars, Coins) with pattern-matching missions. Players dodge candy volleys while completing collection goals. Updated export paths and version strings across all platforms (Windows, Android, Web, Linux).
42 lines
903 B
GDScript
42 lines
903 B
GDScript
extends RefCounted
|
|
class_name GameMode
|
|
|
|
enum Mode {
|
|
FREEMODE = 0,
|
|
STOP_N_GO = 1,
|
|
TEKTON_DOORS = 2,
|
|
GAUNTLET = 3
|
|
}
|
|
|
|
static func from_string(mode: String) -> Mode:
|
|
match mode:
|
|
"Freemode":
|
|
return Mode.FREEMODE
|
|
"Stop n Go":
|
|
return Mode.STOP_N_GO
|
|
"Tekton Doors":
|
|
return Mode.TEKTON_DOORS
|
|
"Candy Cannon Survival":
|
|
return Mode.GAUNTLET
|
|
_:
|
|
return Mode.FREEMODE
|
|
|
|
static func mode_to_string(mode: Mode) -> String:
|
|
match mode:
|
|
Mode.FREEMODE:
|
|
return "Freemode"
|
|
Mode.STOP_N_GO:
|
|
return "Stop n Go"
|
|
Mode.TEKTON_DOORS:
|
|
return "Tekton Doors"
|
|
Mode.GAUNTLET:
|
|
return "Candy Cannon Survival"
|
|
_:
|
|
return "Freemode"
|
|
|
|
static func is_restricted(mode: Mode) -> bool:
|
|
return mode == Mode.STOP_N_GO or mode == Mode.TEKTON_DOORS or mode == Mode.GAUNTLET
|
|
|
|
static func get_all_modes() -> Array[String]:
|
|
return ["Freemode", "Stop n Go", "Tekton Doors", "Candy Cannon Survival"]
|