omenking / swap-n-pop

http://swapnpop.com
MIT License
46 stars 7 forks source link

FSM mixin #167

Open omenking opened 6 years ago

omenking commented 6 years ago

We should be able to mixin FSM into any component we like. This mixin should have define state_timer, state, maps and and getter to change state

omenking commented 6 years ago

I would also suggest phasing out change_state for the set state, and ensuring all code work with this as the default setter.

omenking commented 6 years ago

Fixing #166 will pave the way for this ticket, since garbage has the other edge cases. We might also want to add FSM to playfield but there isn't any complicated state management needed for playfield as of yet.

Skytrias commented 6 years ago

is this issue finished? it doesnt really belong anywhere