Pages

mouse on canvas

function getMousePos(canvas, evt) { // necessary to take into account CSS boundaries var rect = canvas.getBoundingClientRect(); return { x: evt.clientX - rect.left, y: evt.clientY - rect.top }; }

IBM bluemix

https://hub.jazz.net/docs

game in jsbin !


code

jsbin : plusieurs fichiers !

JS Bin on jsbin.com

REf : gamePad

http://www.w3.org/TR/gamepad/

http://www.html5rocks.com/en/tutorials/doodles/gamepad/

objets et canvas

http://jsbin.com/supoci/edit?html,js,console,output

on joue ?

http://jsbin.com/padego/edit?js,output

dessine Flèche : tuto

http://www.dbp-consulting.com/tutorials/canvas/CanvasArrow.html

test

http://jsbin.com/minagac/edit?html,css,js,console,output

canvas

http://jsbin.com/jugovu/1/edit?html,css,js,console

ils sont là !

https://www.javascript.com/
http://www.javascripture.com/