[Suggestion] EasyWebSocket

Post your completed addons to share with the community

Post » Mon Aug 13, 2012 10:41 am

even it does not turn out to be any good (even for a BattleShips or 4-in-a-row Game). For me, it will be a big experience to work on it and hopefully gives to knowledge to continue working on my Photon Server Plugin :)
B
42
S
9
G
6
Posts: 437
Reputation: 5,626

Post » Mon Aug 13, 2012 12:09 pm

@Ubivis
I like your motivation! :)
Photon seems nice, but i'm not going to use it because it has no
linux port (so i cant host it on one of my servers) and Cloud has no free tier (trial doesnt count).
B
16
S
4
G
5
Posts: 24
Reputation: 3,288

Post » Mon Aug 13, 2012 6:29 pm

I'm working on implementing the following PHP Websocket code as a plugin because i want a PHP server and a javascript client.
B
17
S
9
G
7
Posts: 249
Reputation: 6,922

Post » Mon Aug 13, 2012 8:16 pm

[QUOTE=Ubivis]... hopefully gives to knowledge to continue working on my Photon Server Plugin :)[/QUOTE]
@Ubivis
Have you had a look at my experimental PhotonPlayer plugin? I'd be very happy for you to use my code as a basis for your own plugin.
B
105
S
20
G
12
Posts: 549
Reputation: 20,320

Post » Tue Aug 14, 2012 7:46 am

[QUOTE=Velojet]
Have you had a look at my experimental PhotonPlayer plugin? I'd be very happy for you to use my code as a basis for your own plugin.[/QUOTE]

Not yet, wanted to start from scratch but might have a look ;)
B
42
S
9
G
6
Posts: 437
Reputation: 5,626

Post » Tue Aug 14, 2012 8:19 am

Imo, Photon is a very good, viable multi-player plugin. Its pretty cheap and I've tried it with Unity games, its fast. The only problem I can see is some preferring to stick to a server machine, one they can run themselves or share with another game etc.

Photon servers cost money, but if you're serious about making an online game, you need money.Rory2012-08-14 08:20:42
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Tue Aug 14, 2012 3:52 pm

I got the javascript client and php server running and the following show it working.

demo

It would be easy to make this into a working plugin, i just need to know what information is wanted. Like player position and enemy postion is what i currently thinking of.
B
17
S
9
G
7
Posts: 249
Reputation: 6,922

Post » Tue Aug 14, 2012 4:51 pm

@rfisher
Thats pretty interesting, though the example doesnt work.
Also, isnt PHP a bit Awkward for this kind of use?
B
16
S
4
G
5
Posts: 24
Reputation: 3,288

Post » Tue Aug 14, 2012 5:44 pm

@DeMayunn

I tried on 2 different computers using chrome and also on my iphone 4s and they all worked. I know it doesn't work with IE9.

All this demo does is echo what you type in, but the function of the server can be changed to do anything.
B
17
S
9
G
7
Posts: 249
Reputation: 6,922

Post » Tue Aug 14, 2012 6:07 pm

I am using chrome, i get this - Error: INVALID_STATE_ERR: DOM Exception 11
B
16
S
4
G
5
Posts: 24
Reputation: 3,288

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest