Wire Hebat Allah dive into the main game
This commit is contained in:
1 parent
b72cdd5042
commit
2d56842c90
2 files changed
+52
-9
No files matched your search
@@ -51,8 +51,8 @@ const ConfirmationDialogScreen = preload(
|
||||
const RebindResult = preload("res://game/application/input/rebind_result.gd")
|
||||
|
||||
const MAIN_MENU_SCENE = preload("res://game/presentation/main_menu/main_menu_screen.tscn")
|
||||
const VEHICLE_TEST_WORLD_SCENE_PATH := (
|
||||
"res://game/composition/vertical_slice/vehicle_test_world.tscn"
|
||||
const DIVE_WORLD_SCENE_PATH := (
|
||||
"res://game/composition/vertical_slice/sunlit_shallows_world.tscn"
|
||||
)
|
||||
const COCKPIT_HUD_SCENE = preload("res://game/presentation/cockpit/cockpit_hud.tscn")
|
||||
const SONAR_DISPLAY_SCENE = preload(
|
||||
@@ -66,7 +66,7 @@ const CONFIRMATION_SCENE = preload(
|
||||
"res://game/presentation/confirmation/confirmation_dialog.tscn"
|
||||
)
|
||||
|
||||
const DIVE_SESSION_ID := &"vertical_slice_vehicle_test"
|
||||
const DIVE_SESSION_ID := &"sunlit_shallows_dive"
|
||||
const CONFIRM_ABANDON := &"abandon_dive"
|
||||
const CONFIRM_MAIN_MENU := &"return_main_menu"
|
||||
const CONFIRM_QUIT := &"quit_game"
|
||||
@@ -105,7 +105,7 @@ func _ready() -> void:
|
||||
_show_main_menu()
|
||||
|
||||
|
||||
func _start_vehicle_test() -> void:
|
||||
func _start_dive() -> void:
|
||||
var rules = DiveRulesResolver.new().resolve(
|
||||
DiveDifficultyProfile.standard(),
|
||||
DiveUpgradeEffects.new(),
|
||||
@@ -117,7 +117,7 @@ func _start_vehicle_test() -> void:
|
||||
if not session.is_ready():
|
||||
return
|
||||
|
||||
var world_scene := load(VEHICLE_TEST_WORLD_SCENE_PATH) as PackedScene
|
||||
var world_scene := load(DIVE_WORLD_SCENE_PATH) as PackedScene
|
||||
if world_scene == null:
|
||||
return
|
||||
var world := world_scene.instantiate() as Node3D
|
||||
@@ -457,7 +457,7 @@ func _show_main_menu() -> void:
|
||||
_replace_active_world(null)
|
||||
var screen := MAIN_MENU_SCENE.instantiate() as MainMenuScreen
|
||||
_replace_active_screen(screen)
|
||||
screen.new_game_requested.connect(_start_vehicle_test)
|
||||
screen.new_game_requested.connect(_start_dive)
|
||||
screen.quit_requested.connect(_quit_game)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user