| java Programming Glossary: input.iskeydownJava rectangle collision detection confusion http://stackoverflow.com/questions/13825515/java-rectangle-collision-detection-confusion  delta throws SlickException Input input gc.getInput up if input.isKeyDown Input.KEY_UP bucky movingUp changes the image to his back buckyPositionY.. 10 stops any further movement in that direction  down if input.isKeyDown Input.KEY_DOWN bucky movingDown buckyPositionY 10 if buckyPositionY.. 10 basically change the direction if make  left if input.isKeyDown Input.KEY_LEFT bucky movingLeft buckyPositionX 10 if buckyPositionX.. 
 |