aspose file tools*
The moose likes Game Development and the fly likes Problem with my Breakout clone Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Game Development
Bookmark "Problem with my Breakout clone" Watch "Problem with my Breakout clone" New topic
Author

Problem with my Breakout clone

Andrew Johnson
Greenhorn

Joined: Dec 21, 2004
Posts: 1
Well, I am almost complete with this project except for one thing. My key event handler isnt working. I am using the Space bar to switch from the title screen to the game itself, and the p key to pause and unpause the game. But neither one is working. Here is the code. If anyone could help it would be great.

Steven Bell
Ranch Hand

Joined: Dec 29, 2004
Posts: 1071
I could be missing something, but I don't see any class that is implementing MouseListener, or being registed as a Listener.
Richard Davies
Greenhorn

Joined: Dec 29, 2004
Posts: 1
I think Steven is right - you haven't implemented the MouseListener or KeyListener interfaces.
Steven Bell
Ranch Hand

Joined: Dec 29, 2004
Posts: 1071
I meant KeyListener, but I don't see the MouseListener either.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with my Breakout clone