Game Maker book

Looks like a good book on programming Game Maker.

There is a sample chapter here:

It is how to program Pong !


Modeling a soccer player

A soccer player is on a breakaway, dribbling the ball downfield, parallel to a sideline. From where should she shoot to have the best chance of making a goal? That is, at what point will the angle formed by the player and the two goal posts be the greatest?

The applet below allows you to investigate this problem by changing the location of the player as well as the distance between the player and the goal posts. As you move the player, the angle changes. Where should the player be placed so that the angle is maximized?