Closed ItsStolas closed 6 years ago
I feel level classes like sandbox should have list of entities as entities belong to a scene.
Gamevariables class is for having variables related to game. Like which level the player is on, Score , things and other such similar things.
Sure that seems logical to me too
Changed them.
Merged along with some changes to resolve conflict. Now Sandbox class will have a reference of player also. I dont see use of more than one player now as we will mostly be working towards a single player game. If in future we plan to make game multiplayer, we will have a array of players instead with the scene.
Sounds good :)
All Entities are now to be added to GameVariables
The GameLoop then goes down the list of current entities and calls their draw() functions.
Initalize objects in the scene, like so: