The reason I made this is because they called from Talangjägarna and told me they wanted a sample of my html and javascript knowledgde.
I couldn't find any of my old javascript project so I just thought I'd make a knew one! Said and done and here it is!
The estimated time it took to make this page and the pong game is somewhere around 8h.
The game is written totally in javascript and I have used a small vector graphics library from www.walterzorn.com for the graphics. I have written everything else myself.
Left player up: A
Left player down: Z
Right player up: up-arrow
Right player down: down-arrow
P or Break for pause. When the game is done press Enter for new game.
Each game is 2 min. The most goals win! (duh)
Feel free to use the source code in whatever way you'd like. I have prepared the code a bit for adding power-ups into the game to make it more interesting. It might happen in the future, it might not.
Here's the code anyways: