public void drawTank ( Graphics g , float xpos , float ypos , float rot ) { // work out the centre of the tank in rendering coordinates and then // spit onto the screen int cx = ( int ) ( xpos * 32 ) ; int cy = ( int ) ( ypos * 32 ) ; g . rotate ( cx , cy , rot ) ; player . draw ( cx - 16 , cy - 16 ) ; g . rotate ( cx , cy , - rot ) ; }
Draw a single tank to the game