It's a demo of my new socket.io plugin.
dl.dropbox.com/u/5779181/C2Demo/Mini%20Town/index.html
1. The same room id will enter to the same room.
<img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/screen1-23.png" border="0">
2. Player can wait others at lobby. Player who entered this room first could press "Start" button to start the game. After game started, the room will be closed so that other players could not enter.
<img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/screen2-10.png" border="0">
In the game
3. player could use arrow key to move the camera
<img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/screen3-3.png" border="0">
And click any tile to put their character. Player will get their own character.
4. press arrow key to move character.
<img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/screen4-2.png" border="0">
The different of new one with old one is, the server of new one is located at heroku. So plugin user does not need to worry about how to create server.
The new server could create mutli game-rooms, each game-room is a chat-room basically, server only broadcast message to all clients in the same room.
Uh, it has a game lobby to see the opened games. Just double click the name at up-right listbox to join these opened game. (special thanks to septeven for his great listbox plugin)
p1ay.allalla.com/games/BN_Lobby
<img src="http://i1081.photobucket.com/albums/j352/rexrainbow1/screen5.png" border="0">
(To test this feature, you could create a game and do not press start.)
All the client side (game, lobby) are created by plugins within C2.
capx files
sites.google.com/a/binhua.twbbs.org/construct-project/FileStorage/bottleneck_demo.7z
MiniTow
Dependence of Mini Town.capx
[plugins]
[behaviors]
Dependence of Lobby.capx
[plugins]
ComboBox & ListBox (made by septeven)
Bottleneck_Lobby (socket.io client)
hash table
Source code of server.