/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
public Block(Game1 game, Model model) { this.game = game; this.model = model; }
public VanishBlock(Game1 game, Model model) : base(game, model) { animationCounter = 30; }
//public BoundingBox[] BoundingBox //{ // get // { // BoundingBox[] boundings = new BoundingBox[blocks.Length]; // for (int i = 0; i < blocks.Length; i++) // { // boundings[i] = blocks[i].Bounding; // } // return boundings; // } //} public Tetrimino(Game1 game, Model model, int type) { this.game = game; this.rotation = 0; this.type = type; this.Position.X = 0.05f; blocks = new Block[layouts[type].Length]; for (int i = 0; i < layouts[type].Length; i++) { Vector3 position = this.Position + layouts[type][i]; blocks[i] = new Block(game, model); blocks[i].Position = position; } }