Move to a state machine

This commit is contained in:
2014-06-14 12:11:59 -07:00
parent 1101bea572
commit 20446e4e20

View File

@@ -879,7 +879,7 @@ function setMovingState(spr, state)
delState(spr, STATE_FACE_UP);
delState(spr, STATE_MOVING);
delState(spr, STATE_RUNNING);
setState(spr, state);
addState(spr, state);
}
function exchangeState(spr, state1, state2)