SHARE
TWEET

Untitled

a guest Jul 17th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var BusView = new Class({
  2.     initialize: function (x,y)
  3.     {
  4.    
  5.         this.sprite = new sprite('./data/property.png',vec2(x,y), true, false);
  6.         this.id == -1;
  7.         this.state = 4;
  8.     },
  9.    
  10.     setID: function (id) {
  11.         this.id = id;
  12.     },
  13. });
  14.  
  15. var Grid = new Class({
  16.     initialize: function (size) {
  17.         this.views = [];
  18.        
  19.         for (i = 0; i < size; i++)
  20.         {
  21.             for (j = 0; j < size; j++)
  22.             {
  23.                 this.views[i*100 + j] = new BusView(i*65,j*65);
  24.             }
  25.         }
  26.     }
  27. });
  28.  
  29. var grid = new Grid(1000);
RAW Paste Data
Top