You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the suggestion. I don't like using optional parameters, but I have implemented what you requested - you can now simply pass 'null' as the parent and it will default to game.world. Or if you pass no parameters at all it will do the same.
From the
SpriteBatch
docs:This is a simple suggestion that allows for the
parent
parameter to be skipped, therefore adding theSpriteBatch
directly togame.world
.In GameObjectFactory
e.g.,
The text was updated successfully, but these errors were encountered: