Report as inappropriate.
A start of a networking game with server and clients.
NOTE: Of course this will not work onsite.
Location and firing is displayed across all clients via the server.
Supports multiple clients.
This is just a practice project.
** If you host a server, it will ask for a port number (which clients will need to know).
** If not hosting a server, it will need to connect to a server via an IP address and port number. If server is on the same machine you can use "localhost" (without quotes) for IP.
Idea is to have the "missiles" be computed by the server in if they collide with to-be enemies. So then clients can be told of exploded missiles (removing them), and having an explosion take their place.
Enemies I'm guessing will have to be synced as close as possible between clients while still represented on server for determining collisions. So movement like the missiles will be done on client side. As well as healths and such.
Let me know if you have any thoughts or questions.
For reusable GUI Components, visit:
Want to leave a comment? You must first log in.