Search:

Type: Posts; User: Ceasar

Search: Search took 0.11 seconds.

  1. Replies
    8
    Views
    6,355

    Re: Need a loop for rows and columns

    That doesnt seem to be working for me...not sure what i did wrong
  2. Replies
    8
    Views
    6,355

    Re: Need a loop for rows and columns

    Ok here is another question.

    If i used the code to make all the bricks of the game how can i change the colours between them?

    for (int i = 0; i < 8; i++)
    {
    for (int j =...
  3. Replies
    8
    Views
    6,355

    Re: Need a loop for rows and columns

    yup that work and i have assigned points to the colors.
  4. Replies
    8
    Views
    6,355

    Re: Need a loop for rows and columns

    private static final int BRICK_HEIGHT = 8;
    private static final int BRICK_WIDTH = 16;
  5. Replies
    8
    Views
    6,355

    Re: Need a loop for rows and columns

    Umm it creates the blocks but they seem to be stacked on each other.

    ummis it possible to use the brick height and width in the code so they dont stack on each other?
  6. Replies
    8
    Views
    6,355

    Need a loop for rows and columns

    hey guys i need help making a loop to create bricks in my breakout game.

    here is the code to make one brick:

    //creates a brick in breakoutWourld.
    brick = new Brick(1,"red");
    ...
Results 1 to 6 of 6