PHudBase-WebMud: No-hassle Browser Client for Any MUD

What is PHudBase?

PHudBase is a codebase, written in PHP, designed to support MUD-style games with socket-based, real-time communication across any protocol, including HTML5 WebSockets for no plugin browser-based clients.

About PHudBase-WebMud

PHudBase is a PHP-based, plugin-free socket-serving powerhouse.

PHudBase-WebMud is a server (to be installed alongside an existing MUD) with a packaged client to enable HTML 5 WebSocket access to your MUD without touching your codebase.

This means that your users can connect and play directly from your website without the need for a Flash or Java applet, and because it's open-source, you can modify the client and/or the server to your needs.

The client currently also provides a Flash client fallback in case the user's browser does not yet support WebSockets.

The server sends data back to the client via JSON (ex. {"message":"John kicks some ass."}) and does the conversion from Telnet for you, to include converting definable colors.

You can also define any kind of custom message you want to, from sending map data to separating chat from the actions and beyond. This is the only modification you would need to make to your code -- adding a way to recognize PHudBase-WebMud users (by client-set option or automatic message from PHudBase) -- and it isn't required to give your clients a browser-based gaming experience.

Further discussion on the how's and why's of PHudBase-WebMud should be taken to the Google Group.

So how do I try it?

Click here to try the demo for PHudBase-WebMud.

How do I implement this thing?

First step is to download the PHudBase-WebMud package at Google Code. Make sure you grab the -WebMud version! I'm not able to provide detailed server administration instruction, so if you don't have or know how to setup Apache, PHP-CLI, etc., I'd brush up on those topics elsewhere.

Next up:

The code has been released as 100% open source, and you're free to modify, destroy, improve upon, sell, or otherwise use what I've built in whatever way you see fit.

That said, if you find my work useful and end up using it in a publicly released fashion, be kind and respect my hard work -- attribute. Really. I've got about two years of developing, revising, erasing, losing backups, fixing, and preparation that led to what you're going to be building your project on -- don't claim it as your own, eh?

A mention somewhere in the credits would be fine, but a linkback or (soon-to-be-created) "Powered by" image on your website would be absolutely awesome.

The codebase is currently maintained over at Google Code.

So download it, make it your own, and let me know when you have something online so I can showcase it. Good luck!

It broke.

First stop would be the Google Group for just this purpose. I'll be around and, I hope, so will other successful PHudBase developers.

If noone, including me, will answer your call for help, shoot me an email directly at jfitzdela (@) gmail.com and I'll do my best to get back to you.

© 2010 Phudbase.com. All rights reserved.