• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with my Breakout clone

 
Andrew Johnson
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Steven is right - you haven't implemented the MouseListener or KeyListener interfaces.
 
Steven Bell
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I meant KeyListener, but I don't see the MouseListener either.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic