Chill out and play some games on The Flash Core

Archive for April, 2010

Collecting a random data set from your database can be useful for all kinds of data driven applications including analytics and “grey areas” in video game outcomes (battles, gambling, etc.).

Here I will discuss the use and methods of randomisation in PHP with data from a MySQL database. Read More »

For those that are unfamiliar with the Twitter API or are looking to quickly fetch tweets from a user’s profile, this class will help.

In PHP, all you do is include the class in your document and construct it with a Twitter username (with some options for extra tweaking). Read More »

Last week I found a post on Crunch Gear, with a video guide on “Spring cleaning your PC“. He came to the realisation that his PC hadn’t been cleaned in a while, and sets about it with a can of compressed air for ten minutes.

Might have been useful taking this approach myself.

As good as it is to clean out all that collective dust (and I highly recommend that you do), that’s not what this article is for.

After the jump, I’ll show you how to clean up the files in your PC, using some very useful programs and tweaks to get rid of the junk that slows it down. Read More »

One thing that is initially overlooked in game design is handling menus and levels within the user interface. However, we know that it’s always going to be, and is, a crucial part to any successful game, as it helps provide the user with an extra level of control and eases general flow. It’s just a case then of finding the code to do it.

This tutorial will cover a simple technique for handling state management with enums or “enumerated types“. If you have used state management or even just enums in C# before, then this will all feel very familiar to you. There are however some very subtle differences between the markup of the two languages. Read More »

Allowing a developer to access a visitor’s browsing history is a huge security risk, that’s why it’s not possible. If you own a website that runs PHP with MySQL and handles sessions then this could be done by tracking IP addresses, user agents and so on to associate a browsing pattern with a particular person. This however can be pretty inaccurate, plus it’s only limited to your own website.

So what are we going to use? Well when you think about it, a user’s browsing history is stored on their computer, client-side. And what else runs client-side that us web developers can make? JavaScript and CSS. These are what we’re going to use. Read More »