Jul 6, 2010

tetris in javascript!

hey guys

So i made this game on my own with javascript help from variuos websites but the implementation and dedbugging has been my study and sweat. I am making the source code publicly available, but I beg you not to misuse it or take credit yourselves (as if I made time machine ..but still honor is something all coders live by).

As for the rest of it, do let me know about any faults and corrections. And for queries and abuses, I am availabale at mailroopam@gmail.com as long as google exixts.

Here goes a small walk-through of how the game was made:

I tell you a secret, i am a dork. Yah i am insulting myself but for a reason. Its better to accept what you are, right? The reason is i don't know what I want. Knowing what you want and not being able to do it is honourable enough. So basically I am trying my hands on everything that interests me even a little. Javascript, my latest fancy, is a browser based language used for both client and server scripting. Although coined as very light weight language, it gets super heavy if one goes deeper and can be compared to any full fledged language like C++. Also a bug that plagued me and many more starters is that javascript and java are not the same.

Anyways the idea for making a game in javascript is originally a part of an idea of making a website for people like us looking for information and kick offs in internet and multimedia technologies. Still under construction, I plan to launch it in near time. So it happened like i already had made a shooting game in javascript and was looking for an idea for another game, that is more indulging, simple and fun to play. Tetris struck me when I was sitting in a J2ME workshop at my college. Cant remember what exactly triggered the thought but the idea seemed good enough. Going back, standing on the metro station I told a friend I was going to make tetris in javascript. He told me, he would do that in adobe flash. Dunno if he was joking but i started off with it the moment I came back home.

And now here it is. Not a very legendary accomplishment though, but considering the work and brainstorming involved, I want to give myself a hi5. I don't know how many people would play it. but certainly, this proves i am good at taking up a new problem and implementing a solution. Brainstorming, debugging and giving a result. The only concern is the large amount of time i take up. Wish I could do things faster.

Anyways, returning back to the game: To play it, download it from the following link (No No I wont ask my fans to download a virus :P ). Open it with a browser and BINGO. To start the game, click on 'start game'. Read the instructions if you want to, but tetris being so popular wont need introduction. Fine then, cya around.

Download it from here
http://sites.google.com/site/roopamplifier/javascript-playground/