*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Problem with my Breakout clone
 
Similar Threads
keyboard arrow keys not working
Dx Ball Game
How do I make the paddle?
BreakOut Java Bug
Error in one of my classes