So the first two lessons we talked about ownership of variables (instances) and also about referencing the ContentManager instance to the Sprite instance in order to use it to load a texture within that sprite. We made a quick paint class diagram to display an overview of what is happening.
Also notice how the Game is unable to directly acces the position and texture variables because they are OWNED by the Sprite class - Can't touch this ! :D
Geen opmerkingen:
Een reactie posten