Login   Register  
Icontem

File: CanvasGame.FPSEngine.demo.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of martin barker  >  Canvas Game FPS Engine  >  CanvasGame.FPSEngine.demo.js  >  Download  
File: CanvasGame.FPSEngine.demo.js
Role: Example script
Content type: text/plain
Description: Example of Useage
Class: Canvas Game FPS Engine
Auto-adjust the rendering frame rate of a game
Author: By
Last change:
Date: 2012-06-25 04:49
Size: 222 bytes
 

Contents

Class file image Download
CanvasGame.draw = function(context){
context.fillStyle   = '#888';
context.lineWidth   = 4;
// Draw some rectangles.
context.fillRect(0,   0, 800, 600);
context.fillStyle = '#f00';
}
CanvasGame.FPSEngine.callDraw();