void function ( ) { if ( keyboard . isPressed ( KeyboardSensor . LEFT_KEY ) ) { this . moveLeft ( ) ; } else if ( keyboard . isPressed ( KeyboardSensor . RIGHT_KEY ) ) { this . moveRight ( ) ; } }
move the paddle when notify that time passed . if pressed left arrow move left , if pressed right arrow move right . concode_field_sep biuoop.KeyboardSensor keyboard concode_elem_sep double rightBoundary concode_elem_sep Rectangle shape concode_elem_sep Color color concode_elem_sep double leftBoundary concode_elem_sep int speed concode_field_sep Velocity hit concode_elem_sep void moveRight concode_elem_sep int divideUpPaddle concode_elem_sep void addToGame concode_elem_sep void moveLeft concode_elem_sep Rectangle getCollisionRectangle concode_elem_sep void drawOn