Hi everyone
I got some difficulty about doing a Java 2D game for pong game consisting of several players, one terrain as dispatching server, balls and target. Using a multicast IP number dispatching server + TCP/IP will be a better way to solve. So how can i design and implement the part of networking code. It's better to offer some sample code.
If you get some ideas, pls inform me.
Thanks a lot!
hui.hunter@gmail.com
I got some difficulty about doing a Java 2D game for pong game consisting of several players, one terrain as dispatching server, balls and target. Using a multicast IP number dispatching server + TCP/IP will be a better way to solve. So how can i design and implement the part of networking code. It's better to offer some sample code.
If you get some ideas, pls inform me.
Thanks a lot!
hui.hunter@gmail.com
How is this issue related to Win32ASM ?
How is this issue related to Win32ASM ?
The reason this forum is in the "Other" category is because Game Programming is not a Win32ASM specific subject. I wish for all game programming questions and topics to be freely posted here without bias.
Ok, "mea culpa" then ..
MUlticast packets will be usually dropped by intermediate routers, they might work a few hops/bridges and of course in the LAN.
For real life internet you only have 2 options:
1)Client - server approach
2)Peer-to-peer
You should consider what kind of data you want to send for the game to work, and try to minimize its size.
How many players can there be in a single game?
MUlticast packets will be usually dropped by intermediate routers, they might work a few hops/bridges and of course in the LAN.
For real life internet you only have 2 options:
1)Client - server approach
2)Peer-to-peer
You should consider what kind of data you want to send for the game to work, and try to minimize its size.
How many players can there be in a single game?
pong game consisting of several players, one terrain as dispatching server, balls and target
hmm. Doesn't sound to me like the Pong I know:

Only the "target" thing makes me think he doesn't mean "Pang"-like game:


Let's say 16Hz input refresh-rate is needed.
1 byte for y position of 1 player
2 bytes for x:y position of 1 ball
download:
5 balls max + 4 players max = 14 bytes per frame. 1792bit/s download
upload:
1 player = 1 byte per frame => 128bit/s upload
That's a wild guess, since I haven't made multiplayer games yet ^^"
Thanks a lot!
Can i just get some sample code about the pong game in Java 2D?
Can i just get some sample code about the pong game in Java 2D?
Awwww, haven't done your homework? Poor hui. If that's all you want, you should spend some time refining your google skills, it shouldn't be too hard finding something...