I make a simple canvas game in HTML5 Canvas.

Canvas is a really great API which allows to do awesome things combined with javascript language. It’s a standard alternative to Flash and for that kind of usage, I think it can fairly compete Flash.

screenshot

You can test the game in a recent browser (canvas-compatible like firefox, chrome, …) following this link.

If you want to hack the code, see the javascript here.

The game was simple to code, except maybe the animation managment which require some optimization perspective. The code source is still not perfect, I may improve soon.

Video demonstration

The same game in HTML5 canvas from gren on Vimeo.

Released with the GNU General Public Licence.

  • http://www.tutorielgimp.blogspot.com/ ripitchip59

    je vais peut être encore embêter tout le monde avec mes détails, mais quand j’ai finit, je n’ai pas je n’ai ni ”you win” ni ”you lose”…
    navigateur : firefox
    c’est normal ou c’est moi qui est un problème? ^^

    • http://grenlibre.fr/ Gaetan

      Tu peux préciser sur la version du navigateur.

      Cela ne marche pas systématiquement ou bien ca n’a surgit qu’une fois ? (il semble y avoir un petit bug, j’ai déjà rencontré des parties bloquées, il faudrait que je corrige)

      Cordialement, gren

  • http://www.ndedesigns.com/ Nick Edwards

    I really like the game (it’s addictive).

    It’s a great use of the HTML5 canvas!

    Thanks,
    Nick

    • http://grenlibre.fr/ Gaetan

      thanks ;)

  • Julijan Anđelić

    Great game!

    Most of canvas games are, more or less just a proof of concept, but this one is exception.
    It’s, as Nick said, addictive and it actually made me come back to the site a few times just to play it :)

    Good work, keep it up ;)

  • Srikant

    This is great fun to play.. Played ti for almost an hour continuously.. Just a small hitch( if i can call it like that) just keep clicking on bottom right or left it keeps collapsing automatically.. You can win easily (I have tried it only in 40*30 grid and 5 colours
    ENJOY!!!!!!

  • http://www.html5contest.com Martine

    Hi,
    I just came across The Same Game and I wanted to let you know that we’re currently hosting a contest for HTML5 games: http://www.html5contest.com.
    Just an FYI :)
    Let me know if you have any questions.
    Thanks!

  • http://www.envergur.fr Envergur

    Très bon ce petit jeux, addictif à souhait ;-)

  • http://www.aexm.fr sebastien

    rhooooo
    trop bon ce jeux s’appellait jawbreaker sur windows mobile 4 ou 5 avec le stylet tactile de mon QTEK S100 …

    c’était en 2003 … si mes souvenirs sont bons !

    NSFW … j’en connais qui vont être content de jouer au boulot !

    @ bientôt

    Cordialement,

    Sébastien