This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

ELInquisator
ELInquisator presents ...

2017/6/19

RealtimeConnection

This is the proof of concept for a server client connection.
I apologize in advance for the program being german. Start it twice (once per computer or two on one) and press play on each one. Now just click on the animal in the center and choose server first at one of them and for the other one client. Note that as client you will get asked for your servers ip-adress. If you are running both on one device you will have to insert localhost there. Now the server can steer the animal wich the arrow keys and the client should imidiately see the movement.

I have used that concept on a chess game which I will put online if somebody requests it.

Have a nice day.

(the URL is a link to my german class project about the book called emilia galotti)

1133 views / 438 in the last 7 days

Tags: with-source

open in greenfoot
Your browser is ignoring the <APPLET> tag.
HTML5 version not available | Scenario not running?

No Comments

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.