Monday 23 October 2017

Last lap

Having not done a great deal over the last couple of days, I've had half an hour to devote to it this evening.

This has involved writing the 'throwing' code for Basketball, so the ball has to be thrown at 90 or 45 degrees to the basket and isn't blocked.

Apart from a couple of tweaks I'm considering, that just leaves the defender moving code to be written. First is fairly simple, the system allows three lives for each game and for Basketball/Football I'll put this up to more like 6 or 7. The second is whether to fail the player or not if they go off the top or bottom of the gaming area.

So far the code for the two sports games occupies just over 3 pages, which is fewer than I expected.

No comments:

Post a Comment