Dog Cow
Well-known member
I'm curious to know if there are any network games for the 8-bit Apple II? Such as where you'd connect two Apples together with a serial cable (or, heaven forbid, cassette ports) to play a 2-player game over the wire.
I did some searching around, and can't seem to find any evidence of such games having been written, so I'd like to try it for myself. The best I have in terms of hardware at the moment are 2 IIgs's, so I'd be using the emulated Super Serial Card functionality.
Here's my newbie plan, without having tried any of it, for a "game" where two dots appear on screen, one being moved by the user via his joystick, and the other being sent over the wire by player 2's movement:
Load the game on to both Apples, and make sure they are connected by cable. Both Apples will assign themselves an ID number, which should be random, or we could have the user decide who is master and who is slave. The main event loop would then go something like this:
- listen to serial port, and see if any data is being sent. In this case, it would be new coordinates for the dot. The sending Apple would send the new X,Y coordinates and a random value.
- The receiving Apple, if it got the data, would update the screen with these new coordinates, and send the random value back to confirm it has received it OK.
- Local Apple allows the user sitting there to move his joystick. It then sends these new coordinates back over to the other Apple, and the cycle continues.
All of this should happen very quickly, so it's a constant cycle of send, receive, and allow the user to move his dot. If anyone more experienced than I sees a problem with this plan, or has some ideas, I'd be glad to hear.
I expect that a slow, rough demo of this could be done in Applesoft, so I'll be working in that language for the mean time.
I did some searching around, and can't seem to find any evidence of such games having been written, so I'd like to try it for myself. The best I have in terms of hardware at the moment are 2 IIgs's, so I'd be using the emulated Super Serial Card functionality.
Here's my newbie plan, without having tried any of it, for a "game" where two dots appear on screen, one being moved by the user via his joystick, and the other being sent over the wire by player 2's movement:
Load the game on to both Apples, and make sure they are connected by cable. Both Apples will assign themselves an ID number, which should be random, or we could have the user decide who is master and who is slave. The main event loop would then go something like this:
- listen to serial port, and see if any data is being sent. In this case, it would be new coordinates for the dot. The sending Apple would send the new X,Y coordinates and a random value.
- The receiving Apple, if it got the data, would update the screen with these new coordinates, and send the random value back to confirm it has received it OK.
- Local Apple allows the user sitting there to move his joystick. It then sends these new coordinates back over to the other Apple, and the cycle continues.
All of this should happen very quickly, so it's a constant cycle of send, receive, and allow the user to move his dot. If anyone more experienced than I sees a problem with this plan, or has some ideas, I'd be glad to hear.
I expect that a slow, rough demo of this could be done in Applesoft, so I'll be working in that language for the mean time.