Do your games need to communicate to each other or each one is a separate
game?
If need to communicate such as from game 1 you can move to game 2 (each
game is a scene), you can organize such as:
---MAIN GAME (trigger point list to go to each scene)
----- scene1
----- scene2....
You can use one socket connection with namespace, for example when joining
MAIN GAME, socket connection is /game/maingame, for scene1 is /game/scene1,
mean just 1 socket connection for a player, just differentiate between
scene by socket namespace.
On Thu, May 30, 2013 at 12:21 AM, Zoran Felbar <[email protected]>wrote:
> Hi,
>
> Me and my friends are working on web page that will run classic board
> games with help of nodejs, socket.io. My problem is how to organize this
> project, beacuse with time we will have lots of game and many more CODE to
> organise. what is the best way to handle this?
>
> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
Nguyen Hai Duy
Mobile : 0914 72 1900
Skype: nguyenhd2107
Yahoo: nguyenhd_lucky
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.