Classic Pong [source code included]
von unsign3d
Classic Pong [source code included]
Tags für Classic Pong [source code included]
Beschreibung
Klassisches Pong-Spiel, programmiert in JavaScript und Canvas. Nur zum Lernen! Quellcode: http://jsfiddle.net/unsign3d/9m8B6/80/
Spielanleitung
Mit den Pfeiltasten nach oben und unten den Spieler bewegen.
Kommentare
caparo
Oct. 23, 2013
it would be better if you used better controls because the page goes up and down and its really annoying
fixed!! just add: window.addEventListener("keydown", function(e) { // space and arrow keys if([32, 37, 38, 39, 40].indexOf(e.keyCode) > -1) { e.preventDefault(); } }, false);
Bullettreatment
Oct. 24, 2013
This game is so bad, it killed my entire family.