Move to a state machine

This commit is contained in:
2014-06-14 12:03:53 -07:00
parent e08d9e00ec
commit 8e4c9f9bbb

View File

@@ -878,7 +878,9 @@ function exchangeState(spr, state1, state2)
function hasState(spr, state)
{
return ( spr.state & state == state );
if ( spr.state & state == state )
return true;
return false;
}
function spriteFacing(spr)