How to check the collision of a square with a wall?

  • 0

  • 3 Answers
  • 0
    Anonymous

  • 0
    compare x and y of a square with x and y of a wall
    Anonymous

  • 0
    Check whether the segment on which the square fell is active (black). If active, then collided.
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!