Space Invaders #2 - HTML5 Game Programming Tutorial [javascript]

Publié le: 22 février 2014
sur la chaîne: Max Wihlborg
22,275
199

::OBS::
As @TheDoppelganger29 pointed out screen is a predefined keyword and we can't use it as a variable name for our screen, fix it by renaming the variable to something else, eg. "display".

The second video where we program a simple clone of the classic arcade game Space Invaders, using javascript and html. I apologize for the poor planning of this video, the video where done in one go without much thought. Anyway if you want to see better videos in the future feel free to subscribe :).

:: Generate Damage Coordinates ::
this.ctx.clearRect(x-2, y-2, 4, 4);
this.ctx.clearRect(x+2, y-4, 2, 4);
this.ctx.clearRect(x+4, y, 2, 2);
this.ctx.clearRect(x+2, y+2, 2, 2);
this.ctx.clearRect(x-4, y+2, 2, 2);
this.ctx.clearRect(x-6, y, 2, 2);
this.ctx.clearRect(x-4, y-4, 2, 2);
this.ctx.clearRect(x-2, y-6, 2, 2);

:: Annotated Source ::
https://github.com/maxwihlborg/youtub...

:: Other Stuff ::
https://github.com/maxwihlborg
http://maxwihlborg.com/
  / epicwihlborg  


Sur cette page du site, vous pouvez voir la vidéo en ligne Space Invaders #2 - HTML5 Game Programming Tutorial [javascript] durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Max Wihlborg 22 février 2014, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 22,275 fois et il a aimé 199 téléspectateurs. Bon visionnage!