Asteroids icon indicating copy to clipboard operation
Asteroids copied to clipboard

KeyPoll bug

Open SergeyRomanko opened this issue 8 years ago • 0 comments

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 );
            }
        }

SergeyRomanko avatar May 01 '16 21:05 SergeyRomanko