// *********************** // 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; }
public override void Initialize() { field = new Field(64, 10); gui = new GUI(); }