I mean you could do that using HTML , CSS , and Java Script but its gonna be way to many lines of code for me. If you are intrested in games in general , you should check out Unity3D (Whitch is probably The BEST for Game Development ONLY)and Java GameDevelopment(First of you Should master Java before learning this Meaning go to the Begginer section of the viedo).
But all in all, Gaming Development is no doubt the hardest type of programming. Hope you Succed.
Cheers , Amanuel.
you can make simple things with js + html and css, but a game that advanced i would use flash
Maybe try this course as a first start:
thanks for the link.