Multiplayer Demo in C2

Show us your completed creations made in Construct 2

Post » Sat Jan 07, 2012 5:58 am

Hey everyone, thanks a lot for the encouraging replies! I really do appreciate this a lot!

Sorry for not being around the last couple of days, I was just so busy at work. Also haven't managed to progress a whole lot, plugin development wise. Will probably start working on the plugin from around Tuesday on, with the intention of releasing everything in about 2 weeks (hopefully, by that time, all will be a lot more stable).

I'm gonna try to answer everybody's questions now, so brace yourself for a wall of text. lol

@smitchell
This is indeed possible. However you will need to do a fair bit of coding, server side.

@arandaschimpf
Thanks. A good starting point might be Mozilla's Javascript Guide: https://developer.mozilla.org/en/JavaScript/Guide
Having the basics down will help out a lot, from there on its just a matter of phrasing your question the correct way and asking Google or Stackoverflow.

@GenkiGenga
Thanks for the kind words! Yes, you understood correctly. In essence I'll just provide an infrastructure, a framework so to say. I'll probably build in some more functions apart from "call function" and "receive response" that will hopefully make your life a lot easier as I go along. But essentially yeah, it's just a "two action" plugin and you will need to modify the runtime.js file as well as of course your server coding itself.

@Kyatric
Glad you like it! Extensive documentation is the plan, so hopefully it'll make the whole experience a lot smoother.

@Noga
Thats fairly hard to asses tbh. Firstly, node as well as nowjs are non-blocking and can handle events asynchronously. Node by itself is designed to handle maximal server load fairly efficiently. Node for example is a lot faster than Apache (maybe not the best example, but just for the sake of it), can handle a lot more requests and greater server load at the same time. However, node is of course more resource intensive. Nowjs is essentially a socket.io wrapper, so it will achieve more or less the same performance (however, keep in mind that nowjs is written and optimized towards real-time applications/games).

Another huge advantage of node is it's "out of the box" optimization. This matters greatly, because with node one doesn't need to embark on low-level concurrency optimization and can instead just write server code and deploy, most of the functionality will work out of the box.

That being said, a lot will depend on your server as well as your game/server code and nothing can be easily determined without a working demo or a specific test case. Some further reading that might be of interest:
http://blog.3rd-eden.com/post/5809079469/theoretical-node-js-real-time-performance

@harrio
Cavemen checkers is indeed a go. Oh and:
[QUOTE]in the words of the surgically enhanced north korean dictator, fencer and ice hotel manager...you can sleep when you're dead.[/QUOTE]

I think "what he said" has never applied more as it does right now haha.

@mars1985
Actually, the most recent stable release of node as well as npm comes with a native win binary, so no need to hack around with cgywin (at least thats what I used to do). Just download the exe installer from node's homepage, install everything. Open up cmd, type "npm install now" and you are good to go.

In regards to backslash vs. forwardslash, it is always recommended to go the unix way, so always use "/" whenever you can. Firstly, node will always normalize paths and windows itself has had support for "/" since forever (well, at least since winXP that is).

@Kiyoshi
Glad you are as enthusiastic about this as I am! Hopefully, this will allow for a ton of new content to come out of the C2 community.


Also, I just wanted to mention that I'll be including the following projects with the plugin (this includes server code, C2 files as well as modified runtime.js files).

1. "Hello World" (of course haha)
2. A real time game (most probably a clone of pong)
3. A turn based game (probably a simple multiplayer card game)
4. A couple of smaller projects
5. ??? (requests are welcome, as long as its not overly complicated)

Right, thats all for now. I've gotta run out and get some work related coding done (on a Saturday no less... but well, it's crunch season haha). Updates will follow.

Cheers everyone!
B
6
S
1
G
1
Posts: 23
Reputation: 833

Post » Sat Jan 07, 2012 12:08 pm

"1. "Hello World" (of course haha)
2. A real time game (most probably a clone of pong)
3. A turn based game (probably a simple multiplayer card game)
4. A couple of smaller projects
5. ??? (requests are welcome, as long as its not overly complicated)"

You could make a racing game, There is a standard top down racing game, and a isometric one you can download,they have most of the logic down, you just need to add your multiplayer plugin to it :)

Quick Question
     - Will your plugin work on mobile games? smitchell2012-01-07 12:09:10
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Sat Jan 07, 2012 2:42 pm

[QUOTE=smitchell]
Quick Question
     - Will your plugin work on mobile games? [/QUOTE]

what he said...
B
51
S
17
G
15
Posts: 1,029
Reputation: 26,314

Post » Sat Jan 07, 2012 3:53 pm

Just dont burn yourself out mate - (or forget about working on your little project as well!) Other than that - Awesome, as usual :)

[QUOTE=harrio] this sir, looks amazing. if you end up doing half of what you intend, this will open up incredible paths for more game types. [/QUOTE]

Oh, and what he said!GenkiGenga2012-01-07 15:57:17
ImageImage
B
73
S
16
G
6
Posts: 1,038
Reputation: 10,473

Post » Fri Jan 13, 2012 5:29 pm

Hey can you explain me how it works
i am completely on the moon
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Fri Jan 13, 2012 5:45 pm

@kbdmaster: There's nothing that has been released yet.
You can always dig informations in this very topic. It's only 5 pages to read, take your time and read it several times if you need.

Talkinghead is working a complete solution with tutorials and easy access.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Fri Feb 10, 2012 5:58 am


Just wanted to say this looks great and hope you are making progress.
B
4
G
1
Posts: 26
Reputation: 1,146

Post » Sat Feb 11, 2012 5:09 pm

This is awesome !

Can't wait to see it :D

My question is how much of the events do i have to write around the Multiplayer plugin.   

Let's say: Bulled Impact Kills Player.



Is that enough or do i have to write that with your plugin ?

Multiplayer.Bullet Impact Kills Player.


? :o

Good luck with the development :D
B
40
S
11
G
4
Posts: 665
Reputation: 8,403

Post » Sun Feb 12, 2012 7:56 pm

Can you post a link to the server
Or a tutorial to make the server
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Wed Feb 22, 2012 11:31 am

when this is finished, I think you make a lot of people here really happy (me too *gg*).

Looking forward to hear news on progress. :)
B
42
S
9
G
6
Posts: 437
Reputation: 5,626

PreviousNext

Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 1 guest