Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Thread: Brick Breaker

    by Norm
    Replies
    19
    Views
    3,213

    Re: Brick Breaker

    Use nested loops to assign values to the two dim array.
  2. Thread: Brick Breaker

    by Norm
    Replies
    19
    Views
    3,213

    Re: Brick Breaker

    Ok, that could work. Usually its row,column: [4][20]
  3. Thread: Brick Breaker

    by Norm
    Replies
    19
    Views
    3,213

    Re: Brick Breaker

    You can't paint them until they exist. Where will they be created and saved so they can be painted?
  4. Thread: Brick Breaker

    by Norm
    Replies
    19
    Views
    3,213

    Re: Brick Breaker

    I'm not sure how the Brick class would create instances of itself and put them at the top of the screen in rows.
    The paint() method defintely should NOT create the bricks. It should call each of...
  5. Thread: Brick Breaker

    by Norm
    Replies
    19
    Views
    3,213

    Re: Brick Breaker

    Which class and method is supposed to do that?
  6. Thread: Brick Breaker

    by Norm
    Replies
    19
    Views
    3,213

    Re: Brick Breaker

    Sorry, without a complete program I can't compile, execute and test the code to see what the problem is.
  7. Thread: Brick Breaker

    by Norm
    Replies
    19
    Views
    3,213

    Re: Brick Breaker

    You'll have to post some code that compiles, executes and shows the problem.
  8. Thread: Brick Breaker

    by Norm
    Replies
    19
    Views
    3,213

    Re: Brick Breaker

    What problems are you having?
  9. Thread: Brick Breaker

    by Norm
    Replies
    19
    Views
    3,213

    Re: Brick Breaker

    What is a Brick object supposed to do? Does it need setter methods?
    Does it have a state?

    BTW Java naming standards says methods should start with lowercase letters.
  10. Thread: Brick Breaker

    by Norm
    Replies
    19
    Views
    3,213

    Re: Brick Breaker

    A starting point: define what data the brick needs to keep and what methods it needs to maintain that data.
Results 1 to 10 of 10