File: CanvasGame.FPSEngine.demo.js

Recommend this page to a friend!
  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: 11 years ago
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();