View Full Version : [Beta] Multiple Game Lobby example (AS3)
06-26-2012, 03:03 PM
We have a beta version available of a new code example: MultiGameLobby. This is a very basic AS3 lobby that gives users a choice of games to play, then loads the swf for that game and sends a QuickJoinGameRequest for the game. After successfully joining the game, the ElectroServer instance is passed to the swf that was loaded.
When the game is over, the loaded swf can send an event that returns to the lobby.
Note: You will need to deploy the extensions from the Reversi and ZombieRace game examples for this to work. Those extensions are not included in this zip.
Live example (http://www.electrotank.com/docs/es5/live-examples/MultiGameLobby/MultiGameLobby.html)
Download the zip (http://www.electrotank.com/docs/es5/zips/MultiGameLobby.zip)
09-20-2012, 11:50 PM
any chance for unity c# version of this example?
09-20-2012, 11:53 PM
Not unless somebody tells me how a Unity application can load an external Unity application. If you just need the games in different scenes, we already have that - check the Reversi game example and the RejoinGame code example.
09-21-2012, 12:05 AM
I Was thinking more like to display 2 realms from the same game but having the client to connect to another server instance/hardware
something like a load balancing or if realm full to choose the other available one.
but not sure if electroserver can communicate with other server.
09-21-2012, 12:13 AM
That is not at all like the Multigame Lobby example.
If you use load and connect instead of manual connection, you can put a second IP and port into the XML file, and if the client can't connect to the first one it tries to connect to the second one. A single client can connect to two different ES5 servers too, if it has two separate instances of the ElectroServer object (perhaps _es1 and _es2) and then just remembers which one to communicate with in a given use case. For example, a FPS game might have the users log onto two ES5s, with one ES5 doing the CPU intensive work, and the other just for relaying of UDP messages in the room, where the plugin doesn't do anything with the UDP messages.
09-26-2012, 10:35 AM
Do you have the javascirpt version of this
09-26-2012, 12:48 PM
10-09-2012, 11:56 AM
Nice surprise about this shorter form. Can you tell us what it is you are talking/writing about?
Has any info. about this shorter form been posted before (and i just missed it)?
10-09-2012, 12:05 PM
angileena I don't know what you are referring to with "shorter form". I see no mention of anything that remotely resembles "shorter form" in this thread.
Please explain in more detail and I'll try to answer your question.
Powered by vBulletin® Version 4.1.6 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.