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

Report as inappropriate.

qnanqing
qnanqing presents ...

2012/2/27

InputClient

this is the network game i've made!

this is the client, and it connected to server in my computer.

My IP address is in the code.

There is still many problem in this scenario. I asking to check it using greenfoot what is wrong.

the problem is:
the game is somewhat stop after sending its first datagram to the server (my server) (my friends used the jar files, so maybe it throws an exception)

--------------
after you press run, press any arrow key to show the rocket.

-----------
the client socket clings on port 9320, so you might have to open that port.
-----------
I think the game will not work on applet :D, open it with greenfoot
----------

aah and the scenario using the stopped() method to close the DatagramSocket
so you must close it using pause not the reset button

2234 views / 5 in the last 7 days

Tags: space game shooter with-source online network

open in greenfoot
Your browser does not support the canvas tag.
qnanqingqnanqing

2012/2/27

someone is connecting!

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

Who likes this?

No votes yet.