void function ( int arg0 , int arg1 , int arg2 , int arg3 ) { xPosition = ( arg0 + ( 2 * twist1 ) ) + ( arg3 * 35 ) ; yPosition = yPosition - arg2 ; velY = arg2 - 5 ; if ( yPosition >= arg1 - 40 ) { yPosition = arg1 - 40 ; velY = 35 ; } if ( xPosition < 40 ) { xPosition = 40 ; velY = - 25 ; } }
move causes the ball 's position to change based upon velocity . the ball is presumed to be moving in a rectangular area defined by the x/y axes and a given width and height . concode_field_sep int xPosition concode_elem_sep int maxY concode_elem_sep int yPosition concode_elem_sep int twist1 concode_elem_sep int velY concode_elem_sep int turn concode_field_sep void paintPiece concode_elem_sep int getXPosition concode_elem_sep int getYVel concode_elem_sep int getYPosition