Yet-another Multiplayer Demo

Show us your completed creations made in Construct 2

Post » Mon Apr 30, 2012 12:27 am

It's a demo of my new socket.io plugin.

https://dl.dropbox.com/u/5779181/C2Demo/Mini%20Town/index.html

1. The same room id will enter to the same room.


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.


In the game
3. player could use arrow key to move the camera

And click any tile to put their character. Player will get their own character.

4. press arrow key to move character.



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)
http://p1ay.allalla.com/games/BN_Lobby/

(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
https://sites.google.com/a/binhua.twbbs.org/construct-project/FileStorage/bottleneck_demo.7z

MiniTow

Dependence of Mini Town.capx
[plugins]
- board
- gfsm
- function
- squareTx
- tmx importer
- bottleneck (socket.io client)
- sync-function (command wrapper, need to update)
[behaviors]
- grid move

Dependence of Lobby.capx
[plugins]
- dialog box (made by @septeven)
- ComboBox & ListBox (made by @septeven)
- Bottleneck_Lobby (socket.io client)
- hash table



Source code of server.rexrainbow2013-03-31 17:12:51
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Mon Apr 30, 2012 12:44 am

B
50
S
17
G
15
Posts: 1,029
Reputation: 26,289

Post » Mon Apr 30, 2012 3:15 am

Update:

Release capx files.

Uh, I don't have time to write document, sorry.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Mon Apr 30, 2012 3:48 am

wow, that's the best sample ever!
B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

Post » Mon Apr 30, 2012 7:40 am

Looks impressive, nice work Rex.
ImageImage
B
73
S
16
G
6
Posts: 1,038
Reputation: 10,473

Post » Mon Apr 30, 2012 9:01 am

@rexrainbow
That is VERY well done indeed! Thanks for sharing!
B
105
S
20
G
12
Posts: 549
Reputation: 20,320

Post » Mon Apr 30, 2012 9:40 am

@harrio
@Joannesalfa
@GenkiGenga
@Velojet

Thanks.

Hope it could help designers to create their own mutli-player games, especially for designers who do not know how to build a server.rexrainbow2012-04-30 09:48:06
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Mon Apr 30, 2012 10:23 am

omg good job!
connection between server and client is secured?
B
19
S
3
G
5
Posts: 98
Reputation: 4,647

Post » Mon Apr 30, 2012 10:25 am

@Peteer

No, I only send the message between server and client.
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Mon Apr 30, 2012 10:27 am

ok ty
B
19
S
3
G
5
Posts: 98
Reputation: 4,647

Next

Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 4 guests