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
Please, implement better classes handling which includes:
Creating MonoBehaviour class which in constructor invokes start function, and start function invokes update function at the end (and update function invoke itself by request animation frame)
Create game class which will derive from MonoBehaviour class and will hold player and other variables (for example game manager) and redraw the game
GameManager which will hold info like paused and tell player what he can do now. It should derive from MonoBehaviour as well.
Character class derieved from MonoBehaviour, currently empty, but will hold basic logic about character later
Player class derieved from character class, that will update by itself
Move animations and static vars to different file
The text was updated successfully, but these errors were encountered:
After some consideration, as this is small game, we do not have to do that at all - it might be even better to leave it as it is and not invoke multiple animationFrames.
We might want to do that in version 1.x as there will be some enhancments.
Overview
Please, implement better classes handling which includes:
The text was updated successfully, but these errors were encountered: