Sunday, December 16, 2012

modals && activeLevel.progress++


Yay modals! As in modal window. 
First I set up a level progression design.  It's not a state machine or anything complicated.  It works as shown:

It's basically abusing the switch statement.  I like the simplicity of activeLevel.progress++ but I imagine this ugly design will come back to bite me in the ass down the line.  Hopefully I can work with it if I keep things simple enough, but it's definitely a hack.  I believe the term is 'ad-hoc'


No comments:

Post a Comment