Hi all. First, I want to say that this question is revolving around a game of battleship I'm attempting to make if I don't give up. In the beginning, I have a picture that has been set up on the graphscreen that displays intersecting lines to form a grid of boxes where the ships will go. I have code to move strings that i have set, however, when the string text intersects with the picture, it erases the pixels already on the graphscreen from the picture. I'm okay with not using strings, therefore, what should I do to make it that the objects I'm moving now do not erase previous pixels from a recalled picture.
Also, I guess the most probable thing would to be an example of collision code. I have used collision code listed from the website, but it will not work properly. I'd be pleased so that if it hits one of the pixels from the picture, it moves part of the string into the next box of the picture-created grid.
This will be a two player game connected by graph link which I have somewhat planned out using the Get( and GetCalc( commands.
Sounds like an interesting project :)
Games via a graph link are hard to program and I can't wait to see the result
You could draw ships with the Line( command and erase them with the 4th argument, too
For connecting, you will need the GetCalc->command only. The problem is, that the other calc has to be in idle mode (Pause command or Menu command), which makes games via cable so hard to program.
Use this for determining connection (you will need two different ID's for both calcs in order to determine the order of getcalc execution):
//Store an unlikely number to A rand->A //really unlikely A->B //temp copy GetCalc->A If A=B //not connected, give ID A If A!=B //connected, give ID B
code created with Roguebantha
Get futuristicOS 8 for your TI-84+
Learn more about futuristicOS 8