Numeric types and Conditionals |
I was out of town for this class, so have included screen captures of lectures. Please watch each video, look at the code discussed, read the related sections in the text, and then look at problems in the book.
Be sure to open your browser window wide enough that you can see everything.
Click on CrossHairs to show the example.
Click on ClickCounter to show the example.
Click on MouseMeter to show the example.
Click on SimpleDrag to show the example.
That example didn't give a good solution for dragging. Click on BetterDrag for a better solution.
Basketball: To see the first attempt click on BasketBall to show the example.
To make our basketball game a bit more exciting, let's add something that is clearly missing from our first version -- a ball. In particular, we would like to change the game so that to score you have to drag the ball into the basket.
Click on BetterBasketBall to show the example.
Numeric types and Conditionals |