[TI Basic] How to make link games in basic

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

I'm guessing using an assembly library would be faster, and it seems a bit messy to use a pause as an alternative "send". I'll admit that I've used that trick too though, back in the old days :)

Also, if anyone cares, getCalc can only be used between two calculators. Using the CLAP interface thingy can send a byte from one calculator to no matter how many others :)
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

The latter is cool, but wouldn't you have to send 2 bytes to tell "the other" calcs they have nothing to do with it? (in the case they don't, ofcourse)
That would still require the usual mess of calcs trying to get #1 because they're first and then trying to tell the others they can't be 1 aswell, and then (because it takes time) 1 or more calcs will have 1 and they try n change it so at the end there is no calc #1..
That allways annoyed me and my only solution was plugging the cable in with the program running.
Does CLAP handle this? (I thought it didn't, but I only really looked through the ASM-library source, not the BASIC thing)
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Erm... not in it's current form. It should eventually be able to solve that itself though.

And you don't neccessarily have to do all that in Basic. It largely depends on what kind of game you're playing, perhaps it's more than enough for everyone to broadcast their coordinates so they can be drawn on all screens. That's why I kept the Basic thingy as simple as possible; less is more :)
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
MattCoder
New Member
Posts: 2
Joined: Thu 26 Oct, 2006 1:46 am
Location: Earth
Contact:

Post by MattCoder »

Ok, I have a similar problem.. I'm trying to make a link-based chatroom prgm in BASIC but I can't get the linking to work...I also want it to send the information and recieve it like AIM, YIM, or any other IM prgm does. I would download and ASM complier but I found my calculator in US History last year and I don't have a USB cord for it...(83+SE)
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
MattCoder
New Member
Posts: 2
Joined: Thu 26 Oct, 2006 1:46 am
Location: Earth
Contact:

Link

Post by MattCoder »

I thought about making my own but I've been busy.....eh, sooner or later I'll get one
Post Reply