I recently started Ti Basic, and after a year of learning Java, am immensely enjoying the relative ease of GUI interfaces in TI. I am working on a sidescrolling game, something like the old Pitfall game, and have the Ti 83 Flash Debugger on my computer, which I would like to use for testing as I develop the program.
Here's the situation: As the game progresses, I want the player to move faster. Thus, I'm putting a time delay into the program based on a for( loop, and as the game progresses, the control decreases by a given percent.
On Ti 84 - not 83 like the emulator I downloaded - I want to use a set of code at the beginning to determine the speed of the calculator. From that, I determine the initial control variable value for the delay loop.
In essence, near the very beginning of the Ti84 program, there is a block of code…
ClrHome Output(3,1,"Loading... Output(4,1," Computer Speed 0->S //S is used to determine speed later startTmr->T Repeat checkTmr(T)>=10 S+1->S Output(5,8,checkTmr(T End
In Ti 84, this should
(1) Let user know what is going on
(2) Get a value for S over a time of 10 seconds, thus determining speed of computer
(3) Let user know how much time is left
If that's correct, is there a way to do anything similar that can include Ti 83 as well, so I can test it on my (much faster) computer, and so that is portable?
Is there another, easier way to determine speed?