Search:

Type: Posts; User: Ceasar

Search: Search took 0.09 seconds.

  1. Thread: Destroy Brick

    by Ceasar
    Replies
    2
    Views
    2,355

    Also need help with setting up the game status. ...

    Also need help with setting up the game status.


    Checks whether we've won or not and reports the status
    - no more bricks: "You WON!!! Score: <score>" and stop the game
    - no...
  2. Thread: Destroy Brick

    by Ceasar
    Replies
    2
    Views
    2,355

    Destroy Brick

    Destroys a (hit) brick and updates the game status accordingly
    - update the score
    - tell the brick to destroy itself
    - remove the brick from Greenfoot
    - display the new...
  3. Re: Please welcome helloworld922 and Json to the JPF team

    :-bd Congrats guys =D>
  4. Replies
    8
    Views
    6,330

    Re: Need a loop for rows and columns

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

    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 =...
  6. Replies
    8
    Views
    6,330

    Re: Need a loop for rows and columns

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

    Re: Need a loop for rows and columns

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

    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?
  9. Replies
    3
    Views
    4,774

    Re: Binary Search Tree implementation

    implement the RankBag interface in the RankBagBST class

    not sure on how i should start..
  10. Replies
    8
    Views
    6,330

    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");
    ...
  11. Thread: Breakout Game

    by Ceasar
    Replies
    1
    Views
    3,088

    Breakout Game

    Breakout – more details

    (NOTE: for co-ordinates in Greenfoot the position (x=0, y=0) is the top left corner)
    · The game has a grid of bricks 11 wide and 8 deep. The colour of the rows of
    bricks...
  12. Replies
    3
    Views
    4,774

    Binary Search Tree implementation

    using a binary search tree (BST) as the data structure.
    Your implementation:

    will implement the RankBag interface in the RankBagBST class;
    must use the provided Node class for the BST nodes...
Results 1 to 12 of 12