//Authors: <Brian and Morgan> public GameState() { this.gameOver = false; this.currentLevel = 0; this.currentScore = 0; this.totalLinesCleared = 0; this.activeShape = ShapeGenerator.GenerateShape(this.currentLevel); this.activeShape.MoveShapeToSpawn(); this.nextShape = ShapeGenerator.GenerateShape(this.currentLevel); this.grid = new BlockGrid(Constants.GAME_MAX_X, Constants.GAME_MAX_Y); }
static void Main(string[] args) { InitializeGlut(); ShaderProgram = new ShaderProgram(VertexShader, FragmentShader); watch = Stopwatch.StartNew(); Grid = new Grid(); Shape = ShapeGenerator.GenerateShape(5); Glut.glutMainLoop(); }
public void GenerateShapeTest() { GameShape textShape = ShapeGenerator.GenerateShape(1); Assert.IsTrue(textShape is GameShape); }
public void activateNext() { this.activeShape = this.nextShape; activeShape.MoveShapeToSpawn(); this.nextShape = ShapeGenerator.GenerateShape(this.currentLevel); }