jump to navigation

A game for your blog ? October 27, 2006

Posted by julien in : Le web , trackback

Version française ici

I have formerly been in charge of the site www.gamies.com, which is still running and has been entertaining over 100.000 people in Europe since 2000.

However, I was wondering how to use the content of Gamies (more than 60 flash games, quite old but still very very addictive, ask my wife !) in the concept of web 2.0, and as a beginning in blogs.

What I did was modifying a good-old Snake game, so that any webmaster can seamlessly integrate it in his own blog, on even website.
Yes more funny, the guys who will play the game on any blog displaying it will get a ranking corresponding to the score they made. Some kind of “World League” of snake in fact.

Well, enough talk, here is the game :

Much more thing can be done : viral marketing (send this game to a friend), avatar, community, widget for your sidebar with a skyscraper game, etc. Plenty of other games are waiting at gamies and can be adapted this way.
For the time being, I just added a little add for my company while game is loading.
But we can think about other possibilities : share ads revenues with webmaster, display non-profit organizations campaigns …

Too early to talk about this, just enjoy the game for the time being.

Here is how to implement it in your own blog : it can not be easier, just copy and paste the code below at the place you want the game to be displayed :

Quite straight forward, hein ?

You can also customize the look of the game by appending some parameters to the script url.
It can take two parameters, the size of the game in pixel, and the background color in hexadecimal format. The two parameters must be separated by a comma.

example : snake.asp?options=430,0000FF will display a game with a width of 430 pixels and a blue background
example : snake.asp?options=,000000 will display a game with a black background and in its default size.
Default size of the game is 500×400, the minimal width you can give is 400, the maximal is 640, so that it remains playable and smooth on all computers.

Wordpress users : you have to deactive the rich text editor when copying the code in one of your post. go to Users > Preferences.

That’s all. I just want to precise this is a alpha beta gamma dzeta version, so it may contains bugs, or even destroy your computer with a big bang :)

Feel free to let comments if you encounter problems, or if you like it.
And as actors say in the Festival d’Avignon : if you liked it, tell your friends, if you didn’t, tell your enemies ;)

Voir aussi : , , ,

Comments»

no comments yet - be the first?