CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: princetonlion.tibd on June 15, 2015, 08:00:08 PM

Title: V200/68k Snake
Post by: princetonlion.tibd on June 15, 2015, 08:00:08 PM
I decided to try to make snake for the V200. I don't have a computer with me so I can't give a link or video, but I will try to get both within the week.


I've made the snake move, but not die when it hits itself, and have a limited size (erase ends when too long).


And Internet connection at the conference center is amazingly horrible... I can barely load tapatalk
Title: Re: V200/68k Snake
Post by: Unicorn on June 16, 2015, 05:26:24 AM
Awesome! You needed to snake or something :)
Title: Re: V200/68k Snake
Post by: Snektron on June 16, 2015, 01:10:47 PM
Did i hear sssssssnake? *snaking intensifies*
Anyway cool!
Title: Re: V200/68k Snake
Post by: princetonlion.tibd on June 16, 2015, 06:09:11 PM
I made a video, I will upload it to YouTube asap.

And cumred, be ready for surprises comrade :)
( "pun" intended)
Title: Re: V200/68k Snake
Post by: Snektron on June 16, 2015, 06:10:02 PM
"Cumred" is actually a on purposely misspelled version of "Comrade" :P
Title: V200/68k Snake
Post by: princetonlion.tibd on June 16, 2015, 06:16:40 PM
I know lol

Hence the quotes around pun
And conference wifi is worse then I expected, I can't get on YouTube. is there a way that I can directly upload a video on here?
At least tapatalk doesn't lag much.

Lemme try to upload via tapatalk. this is in the lobby of the conference center, so please try to ignore background noise. :P
https://vimeo.com/130903562 (https://vimeo.com/130903562)
Title: Re: V200/68k Snake
Post by: Snektron on June 16, 2015, 06:21:33 PM
Youcan uplaod it to a server of some sort and directly post the mp4 i think
Title: Re: V200/68k Snake
Post by: princetonlion.tibd on June 16, 2015, 07:38:06 PM
Does it work?
Title: Re: V200/68k Snake
Post by: p4nix on June 16, 2015, 07:39:38 PM
The video? Yes.
Title: Re: V200/68k Snake
Post by: princetonlion.tibd on June 16, 2015, 09:36:58 PM
Ok, so Tapatalk works :D. New way to upload videos :)
Title: Re: V200/68k Snake
Post by: Unicorn on June 17, 2015, 12:54:55 AM
Awesome!
Title: Re: V200/68k Snake
Post by: Snektron on June 17, 2015, 07:58:12 AM
Oh looks cool :D
Title: Re: V200/68k Snake
Post by: Unicorn on June 17, 2015, 07:10:06 PM
Looking very good :D
Title: V200/68k Snake
Post by: princetonlion.tibd on June 18, 2015, 01:29:45 AM
Quote from: Cumred_Snektron on June 17, 2015, 07:58:12 AM
Oh looks cool :D
Note the name of the files in main :P

Cumred_ is the test file and snektron is the backup
Title: Re: V200/68k Snake
Post by: Snektron on June 18, 2015, 01:43:33 PM
Lol i thought i saw "Snektron" somewhere :P awesome
Title: Re: V200/68k Snake
Post by: princetonlion.tibd on June 19, 2015, 11:59:03 AM
That was one of the reasons to make snake, it has trolling potential :P

Anyways, I'm stuck because I can't detect where the snake has been or reliably erase the snake. I could use a matrix but that would get quite memory consuming...
Title: Re: V200/68k Snake
Post by: Snektron on June 19, 2015, 12:04:06 PM
maybe you can use a list?
Title: Re: V200/68k Snake
Post by: princetonlion.tibd on June 19, 2015, 12:09:20 PM
Maybe, I've tried with a version that stores the last five places the snake has passed, and it went to about 25% speed...


and I don't know if I can increase the size of the list. If it gets too long then memory might run out
Title: Re: V200/68k Snake
Post by: Unicorn on June 19, 2015, 09:49:29 PM
Maybe look at other snake games for other calcs to get an idea?
Title: Re: V200/68k Snake
Post by: princetonlion.tibd on June 20, 2015, 04:46:04 AM
yeah, that was my plan.


I think making it on the graph screen would be easier, because the pxltest can see where the snake has been
Title: Re: V200/68k Snake
Post by: Dream of Omnimaga on June 20, 2015, 05:03:25 AM
Nice to see you back into calculator programming. Have you gotten any luck implementing collision detection for this game yet? On the graph screen pxl-test collision would definitively be easier.
Title: Re: V200/68k Snake
Post by: Unicorn on June 20, 2015, 06:12:45 AM
Yeah... The grph screenn make sense. To bad theres no xlibc for the v200 :/
Title: Re: V200/68k Snake
Post by: Lionel Debroux on June 20, 2015, 06:21:48 AM
Multiple implementations of high-level languages which execute faster than the TI-Basic have been made on the TI-68k platform, years ago. GFA-Basic (known from another platform), NewProg, etc.
Title: Re: V200/68k Snake
Post by: Snektron on June 20, 2015, 09:38:05 AM
But if you use the graph buffer you still dont solve the problem of removing the last parts of the snake :/
Title: Re: V200/68k Snake
Post by: princetonlion.tibd on June 20, 2015, 03:06:19 PM
yeah :/


Actual youtube video:
https://www.youtube.com/watch?v=G2gacUbfsJI
Title: Re: V200/68k Snake
Post by: Dream of Omnimaga on June 24, 2015, 09:21:31 PM
Quote from: Lionel Debroux on June 20, 2015, 06:21:48 AM
Multiple implementations of high-level languages which execute faster than the TI-Basic have been made on the TI-68k platform, years ago. GFA-Basic (known from another platform), NewProg, etc.
It's a shame that NewProg didn't take off like Axe, but I guess it was inevitable with the much smaller amount of 68K coders at the time. Of course, there's always Vertel or FLIB, though, which are similar to xLIB on Z80 models.

As for GFA Basic I never checked it much, but some people used it back then if I remember. I don't know if it's available on ticalc.org, though, and the main site hasn't been updated in a while, so it would be better to download it now if you want to try it, in case one day the site goes down. http://www.tigen.org/gfabasic/
Title: Re: V200/68k Snake
Post by: catastropher on July 05, 2015, 01:31:37 AM
Yaaaaay more people are writing stuff for the 68k calcs! Keep it up! :D