Omnimaga
Calculator Community => TI Calculators => Axe => Topic started by: Keoni29 on May 30, 2011, 02:52:37 pm
-
I think this is not quite right:
:!If GetCalc("appvarThs")->H or (H<S)
:S->{GetCalc("appvarThs",785)}
:End
It gives me an incredibly high hi-score. Higher than the actual score. Is the size incorrect or something like that?
-
Wait you need a 785 bytes appvar for a simple high score ?
I would do this ( If there is only one high score ) :
!If Getcalc("appvThs")->H
0->{Getcalc("appvThs",2)->H}r
End
If S>{H}r
S->{H}r
End
Where "r" is the token in "angle" menu.
-
1. appvar should be the appv token ( 2ND, 8 )
2. H is the byte position where the data is placed, {H} is your highscore :)
3. You can use S -> {H} instead of S->{GetCalc("appvarThs",785)}
-
Crash, why is {H} buffered?
Edit::D It works. Thanks for the code!
-
why is {H} buffered?
{Pointer}r takes 2 bytes instead of only one. Will the player be able to get a higher score than 255? If not, you don't need to use r.
-
Okay. I think no-one is going to have a hi-score higher than 256*256-1 so, but if so: :evillaugh:
-
Okay. I think no-one is going to have a hi-score higher than 256*256-1 so, but if so: :evillaugh:
I take that as a challenge Keoni
-
I almost completed the game. I'm now working on the increasing difficulty.
I'm going to add wind to make movement harder. Maybe I swap the controlls.
You can't beat the programmer :evillaugh: