Framework for PBBGs? – DB Planning

May 30, 2008 at 1:23 pm (MySQL, PBBG, PHP, browser based, game design, game development, scripting, web game)

Good day all.
I don’t know if I mentioned it here, but I am looking into creating a framework for PBBGs using PHP. This is not only to help myself create games but to make it easier others to start to create their own games.

What the first problem you think of when you think of making a framework for games? For me it was databases. We all approach these differently, and will want different info to be stored. After a bit of thinking, the easiest way to do something like this would be to put objects of data into the database and have your code know the schema of the info.
Doing some searching it seems Google beat me to the punch with this idea.

http://en.wikipedia.org/wiki/BigTable

So this gives me the impression its plausible to do what I’m thinking, but is it really efficient? Can it be done is such as way so that each call isn’t grabbing ALL the info related to a player. The goal would be to return a query then to deserialize it. And not to perform string manipulations on it during the query.

Let me give an example of the problem of having all of ones data in a single object.
You have 5 stats, experiences, weapons, armour, magic, a guild, quests, inventory, gold, friends, mail, an attack history…

I think you start to get the point. That’s a large amount of info when you only want your players names and id. I can think of a number of problems for using a large scale solution like bigtable, but is there a way to keep a similar structure on a smaller scale?

To make descent framework for games, the DB needs to be incredibly flexible and this is the only thing that comes to mind when I try to think of a solution.

So for you all DB guru’s out there, what are your thoughts? Can it be done? I will try to put more thought into it over the weekend.

Also, does anyone know of any good database stress testing tools?

Permalink 24 Comments

Themes changes

May 27, 2008 at 1:50 pm (PBBG)

Sorry for all the changes. I don’t really like any of the default themes that are offered so I am constantly torn. I am going to leave it with this until I either get a paid account or my own server to host the blog on.

Permalink 1 Comment

Can Flash be used for PBBGs?

May 27, 2008 at 12:06 pm (PBBG, browser based, game design, game development, internet, web game)

In short, I think the answer is yes and I will explain myself as I write this post.

This post is in response to a comment by jmucchiello on another post. He has suggested that I write this, and since I have been looking for topics, here it is.

Lets define what a PBBG is.

http://www.pbbg.org/

A persistent browser-based game, or PBBG, is a computer game that satisfies the following two criteria:
  1. It is browser-based. The game is played over the Internet using only a web browser.
  2. It is persistent. Progress in the game is achieved over multiple playing sessions.
PBBGs merge the depth and longevity of an application-based game with the accessibility and portability of a browser-based game. PBBG can be spoken as pee-bee for brevity.
There is the definition from The PBBG project. Now, this definition leaves a little room for interpretation on it’s first point; “It is browser-based. The game is played over the Internet using only a web browser.”
Is flash player part of the browser? While it is not an internal function of the browser it is still part of it through extensions in my thoughts. Without it a browser would be lacking some serious functionality when browsing the web.  It’s expected nowadays that flash is installed. And if Adobe isn’t lying, 98.8% of computers online have flash player installed.
So in my opinion flash part of the browser.  Its simply expected that you will have it.
Now, if you made it this far with reading jmucchiello comment on the other post, go do so since I will be touching on it now.
And by extension should not involve being continuously connected to the host system
This is where the main bit of confusing is araising I think. And while the majority of people know how flash works that read this blog, I will give a quick overview of it.
Flash player does not create a continous connection to a server by default. It simply requests a SWF from your server, downloads and caches it, and is ran in your browser like any other web page.  This is no different than you would expect an AJAX app or a Silverlight app.
So when it comes down it, Flash, AJAX and Silverlight all perform the the same basic functions but in different languages.  With all three you can create continuous connections, or at least mimic a continuous connection (Can an AJAX script make a continuous connection or does it relay on constantly requesting data?) though.
And let me clearify, sine this may be the point of confusion. When I talk about using Flash for PBBGs, I don’t mean to create something to similar to an MMO (Though I am looking into it), but instead to use Flash as an interface instad of just HTML/CSS or AJAX. The answer to why flash is simply I like flash. I’m good at it and it offers me a chance to do things in different ways.
I do still intend on using html/css/ajax for the majority of my work, but I kind of feel I need to make people realize flash is more than just for popup ads and streaming video.
So, I await counter arguements.  Just keep in mind this post is trying to convince everyone to drop everything and must start developing in Flash, but that Flash is an option and shouldn’t be dismissed.

Permalink 19 Comments

Busy – Looking for idea’s

May 13, 2008 at 2:00 pm (PBBG)

Hey all. Just a little update to let everyone know I am still alive. I’ve been rather busy the last few weeks working for RasiedMedia and doing some freelance.  Hopefully I will be getting a new laptop soon (hopefully in about a month or two) which will increase productivity for me.

Anyways, I was thinking about ‘advanced’ gaming features to develop in my free time in PHP/Actionscript. Anyone have some idea’s they are willing to share? I’m thinking I may try to tackle a crafting system and a quest building system. These both would be targeted to RPGs and likely will use a flash interface since I like flash and think I can make use of it for games. I know I could use AJAX but I don’t know javascript so Flash it is.

But back to the topic. If you have some suggestions for some features I can try to build them. If I do, I will make the code available.  I probably will do the same with the quest and crafting systems if I get them working the way I want.

Permalink 8 Comments