Here’s the situation:
-
I need to create a game for an interactive kiosk.
-
The game is fairly basic, it will most likely be done in flash/AS3 (I believe this
is the best choice for this kind of game) UNLESS the dual display
requirement is far easier to accomplish with a different technology. -
The kiosk consists of two displays, both of which need to show
separate content from within the same game.
Here’s the question:
How can I (or anyone) create a flash game that utilizes two separate displays for different content? (This is not just a wider field of vision for the game, the two screens will show different things.)
I am asking for a method by which to do this, not for information about coding the game.
[EDIT] My Idea (probably not the best):
Design the game on a canvas twice as wide as one of the monitors, then split the canvas in half and code the game to output different things to each half of the screen. Then run the monitors in “extended desktop” mode or something like that, and make sure that the split between the two desktops occurs in the middle of the game canvas.
[EDIT] The two displays are being fed from the same machine and same graphics adapter. The whole “kiosk” is powered by one single machine.
Pixel perfect, you could run a split screen display, as you’ve mentioned.
Another approach could be leveraging Flash LocalConnection:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/LocalConnection.html
Via a central controller, synchronization between displays could be maintained for both applications with LocalConnection serving as a communications pipeline.
Or, you could install a host server that both Flash applications communicate through.
If built in Adobe AIR, two applications could communicate peer-to-peer using flash.net.ServerSocket.