im not going to give you the code but im just going to tell you how i did it for my project

first you want to get the game screens width and height preferebly in a mouse listener class so that you...