// *********************** // Constructors public Field(int w, int h) { width = w; height = h; gameGrid = new int[height+1, width+1]; blockTexture = new Texture2D[1]; selectorTexture = new Texture2D[1]; selectedBox = new Point(-1, -1); derpManager = new DerpManager(); }
// *********************** // Constructors public Field(int w, int h) { width = w; height = h; gameGrid = new char[height, width+1]; leftSpawners = new Spawner[height]; rightSpawners = new Spawner[height]; blockTexture = null; selectorTexture = null; selectedBox = new Point(-1, -1); derpManager = new DerpManager(); // set the singleton (maybe a bad idea to do this, but it helps with the derps) if (field == null) field = this; }