Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 NBA Live style free-throw sliders
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
NikG




PostPosted: 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.



FreeThrows.t
 Description:
FreeThrows.t
Free-throw system source code

Download
 Filename:  FreeThrows.t
 Filesize:  3.4 KB
 Downloaded:  395 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Delos




PostPosted: Thu Mar 16, 2006 7:05 pm   Post subject: (No 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
NikG




PostPosted: Sun Mar 19, 2006 4:01 am   Post subject: (No 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.



FreeThrows v0.3.t
 Description:
FreeThrows
v0.3 - changed to a function

Download
 Filename:  FreeThrows v0.3.t
 Filesize:  3.48 KB
 Downloaded:  184 Time(s)

Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: