IBCS1 - 1516 - May

From WLCS

Friday (5/27/16)

Agenda:

  • Workplace Readiness Skills Assessment
  • Make sure you've turned in your Internal Assessment: Criterion A via Google Classroom

Monday - Wednesday (5/23/16 - 5/25/16)

Agenda:

  • Internal Assessment: Criterion A: Planning
  • Workplace Readiness Skills Assessment - Friday (5/27/16)
  • Integrating Brickbreaker - collisions & brick drawing
  • If you have not already done so, demonstrate brick collisions for credit
  • Demonstrate a working Brickbreaker game for credit
    • All bricks collide and disappear to win
    • Ball passing the bottom of the screen loses

Monday - Thursday (5/9/16 - 5/19/16)

  • Complete the NVCC Course Evaluation survey
  • Complete the CTE Student Survey
  • Brickbreaker intro
    1. Draw a row of bricks w/ a for loop
    2. Draw multiple rows of bricks by adding another for loop
    3. Give each brick a random color (if you want the colors to stay the same throughout the game, then you'll need arrays)
  • Brick collision detection - demonstrate the collision testing once completed for credit
    1. Create a new sketchbook just to develop your collision detection
    2. You will develop 4 different functions to check if a ball collides with the different sides of a brick
    3. Declare and initialize all the variables for a ball -- start your ball at the top of the screen and have it go straight downwards
    4. Declare and initialize brick_x, brick_y, brick_w, brick_h variables
    5. Declare and initialize a boolean visible variable, which is true -- this variable will remember if a brick is visible or not. If the brick is hit, then we set it to false
    6. Define a function named boolean checkTop(int brick_x, int brick_y)
      • if the ball's bottom edge (ball_y+ball_r) is greater than the brick's top edge (brick_y) AND the ball's bottom edge is still less than the brick's bottom edge (brick_y+brick_h) AND the ball's left edge (ball_x-ball_r) is less than the brick's right edge (brick_x+brick_w) AND the ball's right edge (ball_x+ball_r) is greater than the brick's left edge (brick_x)...then the ball must be hitting the top edge and you should return true
      • otherwise, return false
    7. Go to the draw() function
      1. Draw and move your ball
      2. if visible is true, then
        1. Draw the brick
        2. Check if the ball has hit the top of the brick by using an if-statement and checkTop(brick_x, brick_y)
          • If the brick is hit, then set visible to false and flip the direction of the ball
    8. If you get checkTop() working, then change the starting location and direction of the ball and develop checkLeft(), checkRight(), and checkBottom()
    9. Demonstrate the collision testing once completed for credit

Tuesday - Thursday (5/3/16 - 5/5/16)

Agenda: