Welcome to the Treehouse Community
Looking to learn something new?
Problems with instantiating order and referencing in JavaFX Snake game
I'm working on this Snake game, but i have some problems.
My Game class is a singleton, which is given a reference to the view controller, so the game has access to data about window size and so. But I'm not able to control whether the controller class is instantiated before I'm reaching in for some data.
The project is on my github. Run the program, and you will be led straight to the problem. https://github.com/danielbjorkholm/dB_SnakeGame_FX
Maybe I've missed something ? Feel free to contribute to the project or give a guess to have I can solve this challenging and exciting problem :)