Tag Archives: mongodb

Scores

screenshot_5_JANThe Twist is progressing nicely.  Spending most of my time today working on UI and Graphics – Nothing to stressful on the ol’ brain.  You can see my progress and current iteration of the main menu screen at the moment ( oo, coming soon eh? oooooo!)

Last week I spent time working on a highscore system.

I really wanted The Twist to have an online scoreboard.  The most obvious solution was to use an existing system (Kongregate, MochiMedia, etc).  However my biggest problem with so many of these systems, is they’re not really Mobile friendly, and they all require intrusive registration.

I wanted my players to be able to start score, stat, and achievement tracking as soon as the game launches, and really never have to think about it.  I figured crafting my own score system couldn’t be that hard, now could it ?

I’ve had an amount of experience in high score tracking before, so this wasn’t completely unfamiliar territory.  In my previous games, I was working with a Rails API, this solution was to be quite different.  I wanted something super lightweight, and relatively robust.

I experimented with CouchDB to start, simply because I’ve used it in a few projects.  However I ended up having problems crafting the rather specific views I wanted. A friend then directed me towards MongoDB, and that is what I am currently using.  It’s quick, lightweight, and seems to do everything I want it to.  I’m still yet to do intense stress testing with it, and I’m not sure how it will cope with real players using it – but I’m hopeful.

Ultimately, worst comes to worst, I gut it and install a pre-made solution – But I wanted to give this a go for myself.  If it works out, it’s something I’ll be able to use for many projects in the future.