well I was bored and it was science class, so I made a game.
you can download it here if you want.
this is the code, any optimizations that I could make?
Code:
you can download it here if you want.
this is the code, any optimizations that I could make?
Code:
:1→D
:ClrHome
:Output(1,6,"HUNT
:Output(2,4,"By: Eeems
:For(A,3,5)
:Output(A,1,"T--------------π
:End
:Output(6,4,"Dificulty
:DelVar KWhile K≠105
:Output(7,5,sub(" EASY MED HARD INSANE",6D-5,6
:0:Repeat Ans:getKey:End:Ans→K
:If K=25:D+1→D
:If K=34:D-1→D
:If D=0:4→D
:If D=5:1→D
:End
:If D=3:5→D
:If D=4:8→D
:If D=5:16→D
:randInt(1,16→S:randInt(1,8→T
:S→N:T→O
:randInt(1,16→X:randInt(1,8→Y
:DelVar EDelVar HDelVar GDelVar KClrHome:99→F
:For(A,1,5)
:randInt(1,8)→L1(A
:randInt(1,16)→L2(A
:End
:While K≠105 and F
:E+1→E
:If E=60:Then
:G+1→G
:DelVar E
:End
:If G=60:Then
:H+1→H
:DelVar G
:End
:Output(1,15,F
:S→N:T→O
:If randInt(0,1
:Then
:S+randInt(‾D,D→S
:Else
:T+randInt(‾D,D→T
:End
:If S<1
:1→S:If T>7:8→T
:If T<1
:1→T:If S>16:16→S
:For(A,1,5
:Output(L1(A),L2(A),"*
:If S=L2(A) and L1(A)=T:Then
:N→S:O→T
:End:End
:If S≠N xor T≠O
:Output(O,N,"
:Output(T,S,"π
:getKey→K
:If K:Then
:Output(Y,X,"
:X-(K=24)+(K=26
:Ans+not(Ans)-(Ans=17→X
:Y-(K=25)+(K=24
:Ans+not(Ans)-(Ans=9→Y
:End
:Output(Y,X,"T
:If S=X and T=Y:Then
:F-1→F
:If F=9:Output(1,16,"
:End
:If K=21:Then
:ClrHome:Pause
:End:End
:ClrHome:Disp "Time:",H,G,E,"Score:",10000-(2(70H)D+70GD+ED)+99-F
:Output(2,1,"Hours:
:Output(3,1,"Mintes:
:Output(4,1,"Loops: