Follow
This page is work-in-progress. You can reach me on twitter or mail to rezoner1337@gmail.com

Canvas Query

1.0 canvasquery.js - an extended canvas for gamedevelopers

var layer = cq()  
  .fillStyle("#ff0000")
  .fillRect(0, 0, 32, 32);

Playground

1.0 playground.js - out of box - mouse, keyboard, scaling, gameloop and a layer to draw on.

playground({ 

  render: function() {

    this.layer.clear("#007");
    this.layer.drawImage(this.images.cursor, this.mouse.x, this.mouse.y);

  },

  mousedown: function(event) {

    console.log(event.x, event.y, event.button);

  }

});

ZIP bootstrap.zip - download template using canvasquery + playground.

Works with:

These are games using CanvasQuery

comments powered by Disqus