Posts: 999
Threads: 20
Joined: Jul 2010
16 Jan 11, 10:55PM
(This post was last modified: 16 Jan 11, 10:58PM by titiPT.)
Hey guys, i'm trying to write up a snake game for my TI-84
Till now i got this:
ClrHome
4->A
4->B
1->C
While C=1
getkey->Z
If Z=/0
Then
Output(A,B,""
End
If Z=34
Then
A+1->A
End
If Z=24
Then
B-1->B
End
If B>9
Then
1->B
End
If B<1
Then
9->B
End
If A>8
Then
1->A
If A<1
Then
8->A
End
Output(A,B,"+"
randInt(1,8)->N
randInt(1,9)->O
Output(N,O,"."
If Z=105
Then
0->C
End
Output(1,10,"SCORE"
D=0
If N=A and O=B
Then
D+1->D
Output(3,10,D
End
End
ClrHome
My problems are:
I don't know how to put the snake moving
I don't know how to make the snake grow bigger by each "." it eats
I don't know how to make each dot appear individually; they all appear like FLOOD.
Thanks!, and bear in mind that i only started learning BASIC by looking at already made programs tuesday ;)
Edited, i missed the "While C=1"
Posts: 1,436
Threads: 7
Joined: Jun 2010
Seriously? I know that this is in Offtopic, and I'm not even saying you shouldn't ask here, but your chances of getting a useful reply are about 100 times higher on a forum dedicated to graphical calculator hacks.
Posts: 999
Threads: 20
Joined: Jul 2010
D: thanks for the help.
Hacks? lol
Posts: 1,436
Threads: 7
Joined: Jun 2010
(17 Jan 11, 06:26PM)titiPT Wrote: Hacks? lol
http://en.wikipedia.org/wiki/Hack_%28technology%29
"Cracking a computer" is just a small part of its meaning.
Posts: 999
Threads: 20
Joined: Jul 2010
Programming ain't cracking
Posts: 3,780
Threads: 33
Joined: Jun 2010
Hacking ain't cracking.
Not necessarily.
Somebody please make a Venn diagram?
Posts: 999
Threads: 20
Joined: Jul 2010
i see nobody here enjoys not paying attencion to math classes D:
Posts: 166
Threads: 3
Joined: Oct 2010
Enough with the TI-Calculator posts already!
Posts: 999
Threads: 20
Joined: Jul 2010
(18 Jan 11, 08:37PM)Darkbee Wrote: Enough with the TI-Calculator posts already!
WHY? :(
Posts: 166
Threads: 3
Joined: Oct 2010
(18 Jan 11, 08:39PM)titiPT Wrote: (18 Jan 11, 08:37PM)Darkbee Wrote: Enough with the TI-Calculator posts already!
WHY? :(
It seems like everywhere I look we're talking about TI calculators on these forums here! No, TI calculators cannot run AC servers! No, TI calculators cannot join or create clans. No, you may not use your TI in live AC games to calculate the noob to l33tness ratio (double sided A4 "cheat sheets" are permitted though).
NO TI CALCULATORS!
There is one exception to the rule though. TI calculators are permitted to post to the forums as long as they don't ask how to create a server or clan.
Posts: 999
Threads: 20
Joined: Jul 2010
18 Jan 11, 09:55PM
(This post was last modified: 18 Jan 11, 09:56PM by titiPT.)
What about now? :D
Btw lol @ this:
(18 Jan 11, 09:35PM)Darkbee Wrote: No, TI calculators cannot run AC servers! No, TI calculators cannot join or create clans. No, you may not use your TI in live AC games to calculate the noob to l33tness ratio (double sided A4 "cheat sheets" are permitted though).
Posts: 3,780
Threads: 33
Joined: Jun 2010
Someone's a little sensitive about the Texas Instruments fad.
Posts: 1,718
Threads: 169
Joined: Jun 2010
snake on a TI-84...
yeah, solid snake would fit on a TI-84