My 75th post! (or so says my Wordpress engine), a big thank you to all those who have visited my little space on this sea of information. Is it now due to move to Wordpress 2.0? I’ve read all the enhancements and me don’t think so
With more and more projects like Basecamp and Gmail, the application space within a browser is limited only by ones imagination. If AJAX sounds greek to you, probably you might not have heard about all the excitement behind it. Basecamp is already net’s most favourite Project Management tool. And you would really need to get out of that rock if you haven’t heard of Gmail.
As a budding game developer I’m quite frankly petrified by the alarming growth of such web based apps (this includes Flash based and Javascript based apps). These days I’m sceptical if a gamer would download a zip file or (shudder) an EXE file and go through the installation to just try a game. All the while when there are many of your favourite games like Pac-man (-clone) and Lemmings already ready for you to play. Well, I guess hard-core gamers would be put off by the slow interactions within a browser, but playing speed might just be a question of time.
Anyways, I’ve decided to try my hand at some cool javascript coding. Right from the moment I discovered the game at E-Scribe I found it quite addictive. I just had to finish coding it. In fact, it must have actually taken me less than 5 hours to code, design artwork and test (in 3 browsers - IE, Firefox and Safari !!!) meanwhile sippping tea over endless discussion in the foodcourt ;).
For the impatient the game below is ready to play, so try it online, try it now
The objective is to arrange the some jumbled numbers into numbers in increasing order. At each step all you can do is click on a number. As a result all the numbers to the left of the number including the number will be reversed.
For example, if the current list is 2 3 4 5 1 6 7 8 9 and you reverse 4, the result will be 5 4 3 2 1 6 7 8 9. Now if you reverse 5, you win.
Simple! Just copy paste the following code in your site
<iframe src="http://www.arunrocks.com/downloads/reversegame/reverse-js-game.html"
width = "420" height="100" frameborder="0" scrolling="no">
</iframe>
Please give due credits. The code is release under the GNU General Public License
This section would be of interest only to Javascript developers
Some interesting lessons learnt whilst developing this game are:
innerHTML is not fully crossplatform. It is very useful for debugging hence was often used in alert boxes. Use for node creation use DOM functions such as createElement or appendChild[tag]Programming, Javascript, Game, DHTML, DOM, innerHTML[/tag]
Bookmark this to del.icio.us | Digg | Furl | Netscape | Google Bookmarks | Technorati | reddit |
2 Responses
Jeremy
December 29th, 2006 at 12:40 am
1Good job! I like the game, found it from another post with it written in a few different languages. Yours is by far the most complete and enjoyable.
Thanks!
Jeremy
Mark
October 30th, 2007 at 5:50 pm
2Amazing game! Here are other two examples of one day games: http://labs.involutive.com/game-be-quick-or-be-dead/ and http://labs.involutive.com/game-kaboom/
It seems they use dojo for rendering.
Anyone uses it?
See you!
RSS feed for comments on this post · TrackBack URI
Leave a reply
Categories
Recent Posts
Recent Comments
Meta
Bookmarks
My Twitter
Site Search