samples/04_physics_and_collisions/10_collision_with_object_removal/app/main.rb
#Calls all methods necessary for performing calculations
Calls all methods necessary for performing calculations
Calls all methods necessary for performing calculations
def calc args
  add_new_bricks args
  reset_game args
  calc_collision args
  win_game args
  args.state.westWall.update args
  args.state.eastWall.update args
  args.state.southWall.update args
  args.state.northWall.update args
  args.state.paddle.update args
  args.state.ball.update args
  args.state.paddle.render args
  args.state.ball.render args
end
def calc args add_new_bricks args reset_game args calc_collision args win_game args args . state . westWall . update args args . state . eastWall . update args args . state . southWall . update args args . state . northWall . update args args . state . paddle . update args args . state . ball . update args args . state . paddle . render args args . state . ball . render args end
Calls all methods necessary for performing calculations
Calls all methods necessary for performing calculations
#args.state.testWall.update args
args