callisto28 / flappyBird

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FLAPPY BIRD

Le célèbre petit jeu flappy bird, HTML/ CSS & Javascript

avec l'utilisation du canvas

const render = () => {
    index++;
    //background en double pour le défilement du décor
    ctx.drawImage(img, 0, 0, canvas.width, canvas.height, -((index * (speed / 2)) % canvas.width) + canvas.width, 0, canvas.width, canvas.height);
    ctx.drawImage(img, 0, 0, canvas.width, canvas.height, -((index * (speed / 2)) % canvas.width), 0, canvas.width, canvas.height);
    ......

About


Languages

Language:JavaScript 76.5%Language:HTML 13.3%Language:CSS 10.2%