Homework 4: Target Version

This browser cannot play the embedded video file.

This video shows the functionality that you are targeting in Homework 4. The red sprite has been added via the adapter pattern and the highlighted sprite is now under user control thanks to the strategy pattern (except for the red sprite, which can't be modified). Before the highlight switches to another sprite, the sprite's original move behavior is restored. When a sprite falls under user control, i.e. it becomes highlighted, it stops moving and waits for user input before moving again.


© Kenneth M. Anderson, 2011