You have two people on the same network.
Is there a way to have them speak to each other directly?
For example, you send a message to them, they send a message to you, and your games are updated in real-time.
1. Can it be done?
2. If so, how?
3. Code examples?
I'm curious too. I have an idea before of sharing data via a shared drive.
Like you're gonna make them.type the path to the shared drive then you will create a file in there which the games.will read nd write data that needs to be shared
Never got to try it though.
Yeah, that's a possible problem depending on what type of data you would actually share... That would only happen if ur modifying exactly the same data. But if it's a simple, send data of p1 to p2 and vice versa, then there shouldn't be a problem. Since p1 will be the only one modifying his data and p2 will just read it. and vice versa.
Now if you're making something like a coop game that has an ABS for example, and you're sharing stuff like current HP of the enemy, then you might have problems in case data writing from one comp is slower than from the other.
I haven't really tested it though, so it's all just an idea. In essence, it's just like sending data to and getting data from a server-based file
Actually I meant in-game. For example you have two players on the screen on two separate clients.
Internet people, Internet. Having a RM client/game send things to other game at a friend PC. Online capabilities.
I'm interested on this because I always wanted to make online battles. I followed that tutorial of connecting to a Java server, sending and receiving messages with it. But between clients, have not accomplished anything.
If you learn how to work with Winsock directly (?) I guess you could do it. Opening a socket, giving your IP to your friend, and that friend connecting to you via that socket and that IP. Server-client relationship (???).
Oh, I thought this was about the editor, not a game.
There is a script that allows you to have http connection I believe... Plus the Pong tribute game here already has an online leaderboard, so we would probably just need to dwelve a bit deeper and apply that to sharing other kinds of data