Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 14th, 2012  |  syntax: JavaScript  |  size: 0.21 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. draw: function() {
  2.                 // Draw all entities and BackgroundMaps
  3.                 this.parent();
  4.                
  5.                 for (x = 0; x <= 40; x++) {
  6.                         for (y = 0; y <= 40; y++) {
  7.                                 this.img.drawTile(x*16,y*16,this.frames[x%8],16);
  8.                         }
  9.                 }      
  10.         }