Results 1 to 2 of 2
- 06-25-2012, 11:30 PM #1
Member
- Join Date
- Jun 2012
- Posts
- 2
- Rep Power
- 0
Breakout game : trying to change paddle width uploading different image , but failed
this is piece of my code in paddle class :
Java Code:public Paddle(){ this(0); }
Java Code:if(ctr1){ if(ball1.getRect().intersects(paddle.getRect())){ paddle = new Paddle(1); } } if(ctr2){ if(ball2.getRect().intersects(paddle.getRect())){ paddle = new Paddle(2); } }
Thanks in advance for your timeLast edited by linux_devil; 06-25-2012 at 11:43 PM.
-
Re: Breakout game : trying to change paddle width uploading different image , but fai
Questions:
- When you say you have a run-time error, are you causing an exception to be thrown?
- And if so, can you post the Exception stacktrace?
- Do you have any println debug statements to see what is happening when the game freezes?
- What are you using for your game loop? A Swing Timer perhaps?
- Is this a Swing GUI? AWT? Something else?
- Will the ball intersect immediately with the new Paddle object? If so, will this keep happening ad infinitum?
Similar Threads
-
Paddle Class: Trying to code details to ball & paddle..
By CuppaCoffee in forum New To JavaReplies: 1Last Post: 01-09-2012, 12:14 AM -
Breakout game in the assignment 3 cs106
By dage in forum New To JavaReplies: 5Last Post: 03-16-2011, 05:07 PM -
Making a breakout Game
By JavaIsSoEasy?? in forum Java GamingReplies: 0Last Post: 03-05-2011, 10:52 AM -
Need help with Breakout game
By tfitz666 in forum New To JavaReplies: 9Last Post: 03-22-2010, 05:26 AM -
Breakout Game code help.
By Ceasar in forum New To JavaReplies: 6Last Post: 10-10-2009, 01:30 AM
Bookmarks