I was just wondering if anyone could help me optimize this quick game I made. I tried every trick I can think of, but it still runs too slow for
too much enjoyment. Its just a quick one, so its very short
It's called glider, its just a game where you're a glider who flies over hills, and the closer you get to the ground, the more points you get.
Code: Select all
16->dim(L1
Fill(6,L1
6 -> E
5 -> A
0 -> B
Repeat A>L1(1 or K=45
ClrHome
Output(A,1,">
Output(8,1,"SCORE:
Output(8,9,B
For(F,1,16
Output(L1(F,F,"-
End
randInt(1,3 -> D
E+(D=1)-(D=2) -> E
If E>8
8 -> E
If E<2
2 -> E
E -> L(17
For(F,2,17
L1(F -> L1(F-1
End
getkey -> K
A-(K=25)+(K=34 -> A
If A<1
1->A
round((2^A)/10,0)+B -> B
End