great library

3 views
Skip to first unread message

ChrisEsler

unread,
Sep 27, 2010, 5:13:29 PM9/27/10
to kusht
First of all, great library. Works great.

I've been playing around with it and managed to separate the network
code from your game code. I wanted some backwards compatibility for
non-websocket browsers, so I worked in the flash socket server and
connector from Phudbase-wm.

I have it setup where there is Server code that contains the basics
(socket server, iohandler, etc) and some extra libs like Doctrine ORM
and symphony Yaml parser. Then I have a separate folder for the Engine
of whatever you're building (game, chat server, comet server, etc.)
with folder for handlers, commands, objects and DB models.

I think I've come up with an improvement for your commandhandler. As
its loaded, have it call a load function that reads the files in the
commands directory. As they are loaded they register themselves with
commandhandler and added to the command array. So each command has its
own static class with two minimal static functions (exec and help).

I'll post some code once I get it further along.

But I wanted to write in and say thanks for sharing the code. It's
helped out a lot.

Reply all
Reply to author
Forward
0 new messages