Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add constant GameMenuScene preload to GameStart.gd #177

Merged

Conversation

Spartan322
Copy link
Member

@Spartan322 Spartan322 commented Dec 23, 2023

Add type hints to GameStart.gd constants
Seperate section_name and setting_name from Nodes group in inspector
Prefer callable's called_deferred to string caller in GameStart.gd
Change GameStart._initialize_game to use change_scene_to_packed and GameMenuScene constant to change scene instead

This seems to result in a quicker transition from loading screen to main menu.

@Spartan322 Spartan322 added the enhancement New feature or request label Dec 23, 2023
@Spartan322 Spartan322 requested a review from Hop311 December 23, 2023 03:26
Add type hints to GameStart.gd constants
Seperate section_name and setting_name from Nodes group in inspector
Prefer callable's called_deferred to string caller in GameStart.gd
Change `GameStart._initialize_game` to use change_scene_to_packed and GameMenuScene constant to change scene instead
@Spartan322 Spartan322 force-pushed the improve/game-start-script branch from 0b6dfdd to f945470 Compare December 23, 2023 03:27
Copy link
Contributor

@Hop311 Hop311 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on Windows, noticably faster transition, good work 👍

@Spartan322 Spartan322 merged commit 50b0b93 into OpenVicProject:master Dec 23, 2023
8 checks passed
@Spartan322 Spartan322 deleted the improve/game-start-script branch December 23, 2023 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants