Fang Decision Exercise - Move a ball back and forth in a line.

Make your blue ball a moving target that can only move in a certain path. It should move in a single row, so its Y setting will never change. Do not make it move to a random location for a collision.

Steps:

Add 2 new class variables:

Change MakeSprites:

Make a new method to moveBlue.

Change AdvanceFrame:

An Extra: There are methods for OvalSprite that will set a facing direction and let you move forward.

An Extra: When it is intersected, move to a random x location, but its Y will stay the same.