m00racle / fifty-birds

0 stars 0 forks source link

state machine structure is different #6

Closed m00racle closed 2 years ago

m00racle commented 2 years ago

I have design the structure of my apps source code to conform to MVP structure design but this makes it a bit complicated to apply state machine code.

m00racle commented 2 years ago

UPDATE 2022/01/20

I put another file for the class BaseController. This is where all the controller related to certain state machine will resides.
The idea is to link the controller classes whene the state machine class initialization starts.
We do this to ensure that we can modify the controller as the feature to the players.

I still need to test this out.
I need to at least connect the titile screen but does not yet connect to the play state.
As always I will instatiate title screen first as a test (this is oppsite as in the example which directly instantiate in the function callbacks).