Computer Science Canada

NBA Live style free-throw sliders

Author:  NikG [ Thu Mar 16, 2006 5:06 pm ]
Post subject:  NBA Live style free-throw sliders

Continuing on my little basketball game phase I'm going through right now (see http://www.compsci.ca/v2/viewtopic.php?t=11580), I created some sliders when shooting free-throws (a la NBA Live).

When you load it, you'll be asked to enter a version # (1 or 2).
1 is for a NBA Live 2003 type free-throw system.
2 is for a NBA Live 2005 type free-throw system.
(run it to see what I mean).

If anyone thinks they could use it, feel free.

Author:  Delos [ Thu Mar 16, 2006 7:05 pm ]
Post subject: 

Not bad. Now compartmentalize it so that you could call it from within another programme, and it would return those values it prints out at the end.
Some parameters it should take:
- whether or not to open a new window
- which version of slider to use
- what the range of values between left/right, up/down are
- how fast sliders move

Author:  NikG [ Sun Mar 19, 2006 4:01 am ]
Post subject: 

I decided to try out some of Delos' suggestions.

This new version lets you open it in a new window or in the current one, choose the version, and choose the speed. The result is the x and y coordinates of the slider (in a string separated by a comma).
Two examples are shown in the code.

I suppose another improvement to this could be coordinates of where to draw the grid if a new window is not opened, and more control over range of values.


: