Tuesday, 18 January 2011

My Javascript Experience

Since the explosion of HTML 5 JavaScript has started to interest me more and more, mostly because of the similarities it has with actionscript. Also since the introduction of the canvas tag it seemed to me that JavaScript's likeness to flash is greater than ever. HTML 5 has introduced a kind of stage to which we can refer and add objects, shapes, animations and interactions- the kind of thing flash developers like to do. That being said, now is a better time than any to start branching out and getting to grips with this new technology. So last week I had a go at some JavaScript.

click image to see game

The example I created is an extremely simple arkenoid game. It's not exactly polished and only took me a few hours after work but am pleased with the outcome. I knew JavaScript was pretty similar to actionscript but that was about the extent of my knowledge and I was surprised how quickly I picked it up. I did come across some challenges ensuring cross browser compatibility (I'm still not sure if I managed to cover all bases) but aside from that I managed grasp the fundamentals fairly quickly.
Anyway I learned a lot from those 270 lines of code and will definitely be carrying on with JavaScript development in the future.
On a somewhat irritating side note, it's also kind of cool being able to view my work on my phone for once.
Code is available at GitHub

No comments:

Post a Comment