StateMachine implementation, basic sprite frame support, etc..