How do I set boundary conditions for my bowling game?

1 view (last 30 days)
I'm making a bowling game on MATLAB. So far I have set the images for the background and pins. How do I make the ball roll down the side alley in case it goes near the edge? I made equations to compare x values at a fixed y value but it has no effect. What would you suggest?
  1 Comment
Walter Roberson
Walter Roberson on 1 Dec 2015
Please show your code attempt, the one that tries to compare but does not work.

Sign in to comment.

Answers (0)

Categories

Find more on Strategy & Logic in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!