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

Added global types to GameBoard, Map and autoloads #24

Closed
wants to merge 1 commit into from
Closed

Added global types to GameBoard, Map and autoloads #24

wants to merge 1 commit into from

Conversation

dfgworm
Copy link

@dfgworm dfgworm commented May 5, 2024

I used ctrl+shift+R for all changes here, overall it did not take much time. Did exactly 3 things here:

  1. Replaced all preload with load.
  2. Changed most (maybe all?) autoload singleton calls to their static versions. This step required a bit of attention in Settings and MouseLayer singletons due to similarly named variables. Also had to fix some self.map.X calls that were used to access these singletons.
  3. Changed some classes used by Map and Gameboard to global classes and added direct reference to Map/Gameboard class inside them.

(Plus, i also disabled type warnings for now, since they create a lot of messages)

Game launches without any problems.

I used ctrl+shift+R for all changes here, overall it did not take much time.
Did exactly 3 things here:
1. Replaced all `preload` with `load`.
2. Changed most (maybe all?) autoload singleton calls to their static versions. This step required a bit of attention in `Settings` and `MouseLayer` singletons due to similarly named variables.
Also had to fix some self.map.X calls that were used to access these singletons.
3. Changed some classes used by Map and Gameboard to global classes and added direct reference to Map/Gameboard class.
@dfgworm dfgworm mentioned this pull request May 5, 2024
@dfgworm dfgworm closed this May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant