Asteroids
Asteroids copied to clipboard
KeyPoll bug
Hi!
There is code
private function activateListener( ev:Event ):void
{
for( var i:int = 0; i < 8; ++i )
{
states[ i ] = 0;
}
}
As I understand you are trying to clear all bytes of states not only first 8. The code should be
private function activateListener( ev:Event ):void {
states.position = 0;
for( var i:int = 0; i < 8; ++i ) {
states.writeUnsignedInt( 0 );
}
}