Omnimaga

Calculator Community => Other Calculators => Topic started by: ztrumpet on November 18, 2009, 04:17:43 pm

Title: Nibbler-Snake
Post by: ztrumpet on November 18, 2009, 04:17:43 pm
I made a snake game in the past 24 hours!  :D

Use right (clockwise) and left (counter-clockwise) to steer.  Press clear for quick quit.
Title: Re: Nibbler-Snake
Post by: DJ Omnimaga on November 18, 2009, 04:54:25 pm
oooh nice that seems pretty fast considering it does that many directions! I wonder what kind of code peopl use in BASIC to calculate the snake direction that quick? I never messed with maths enough to discover myself x.x
Title: Re: Nibbler-Snake
Post by: ztrumpet on November 18, 2009, 05:00:55 pm
Mostly I'm using sin and cosine.  I use two lists and four variables to track where the snake is.

If anybody wants the code, it's yours.  Just post here so I can smile. :)
Title: Re: Nibbler-Snake
Post by: jsj795 on November 18, 2009, 10:05:28 pm
wow! that seems pretty nice! and you did that in 24 hours??? Impressive!
How big is the file tho??
Title: Re: Nibbler-Snake
Post by: Eeems on November 18, 2009, 10:24:12 pm
Its 0.8KB I'd you look at the sizething next to the attachment.
Title: Re: Nibbler-Snake
Post by: jsj795 on November 18, 2009, 10:27:30 pm
oh... thx Eeems, didn't notice that haha  :o
Title: Re: Nibbler-Snake
Post by: Eeems on November 18, 2009, 10:51:36 pm
Np :p glad I could help :)
Title: Re: Nibbler-Snake
Post by: Builderboy on November 18, 2009, 11:16:02 pm
Wow, thats really impressive!  Especialy the collision detection with so many directions!  Major props to the Trumpet!! ;D
Title: Re: Nibbler-Snake
Post by: Ti-newb on November 18, 2009, 11:50:17 pm
thats very cool =D
Title: Re: Nibbler-Snake
Post by: ztrumpet on November 19, 2009, 11:48:51 am
:)

Oh yeah, I forgot to mention: Enter Pauses.
Title: Re: Nibbler-Snake
Post by: JoeyBelgier on November 20, 2009, 09:02:13 pm
Again, nice work ztrumpet :D
Title: Re: Nibbler-Snake
Post by: Galandros on November 21, 2009, 07:38:24 am
Great work in a good timing.
Amazing speed. Never underestimate TI-BASIC...
Title: Re: Nibbler-Snake
Post by: Builderboy on November 21, 2009, 11:03:25 am
I remembers seeing this as an assembly program "uncle worm" and thinking to myself, this is one of those assembly programs that just can't we converted to basic.  ;D
Title: Re: Nibbler-Snake
Post by: ztrumpet on November 21, 2009, 08:57:18 pm
Builderboy, that is an awesome post. ;D
Title: Re: Nibbler-Snake
Post by: DJ Omnimaga on November 22, 2009, 12:36:40 am
That's funny how many ASM games thought that way were recently written in BASIC, some without libs
Title: Re: Nibbler-Snake
Post by: Builderboy on November 22, 2009, 11:49:42 am
It truly is a proof to the progress Basic has come! :D