1. modem

Hello, has anyone got any ideas of how to use a modem in a real time
game?? I've seen some modem libraries around, would they be of any use?

--Mark Honnor;
--------------

new topic     » topic index » view message » categorize

2. Re: modem

>Hello, has anyone got any ideas of how to use a modem in a real time
>game?? I've seen some modem libraries around, would they be of any
>use?
>
>--Mark Honnor;
>--------------

You can use the one that was sent to me when I asked...
(Forgot the filename, but it has E-Term in it.... by the same one who did
the Space Invaders - The Next Generation...)
Anyway, it only can send chars 0-255. (ie ASCII values)
One way for a modem game is to send the keypresses across everytime they
are pressed and then have the other machine react accordingly. (Use
constants for the values... ie something like:
constant FIRE = 1, JUMP = 2, UP = 3, DOWN = 4, RIGHT = 5, LEFT = 6

and then send something like
send_serial_byte(COMPORT, FIRE) when the fire key is hit and then when
that is received on the other end have the receiving computer's rendering
of the sending computers character react accordingly.

Another way is send codes based on what happens. (AI enemy 4 changes
direction and fires)... this can be done with seperate codes. (One
computer, the host computer, does all the randomizing calculations... ie
when an random event, like an enemy firing, occurs.)

There are other ways, but these are what I can think of....

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu