public PlayerAvatar(Texture2D4D aTextures, Vector2 initialGridPos, Block[,] grid, IEnumerable<Laserbeam> laserBeams, MainGame game, bool isSilverBot = false) { gridPos = initialGridPos; animPos = gridPos * 32.0f; animTarget = animPos; textures = aTextures; facing = Direction4D.Right; this.grid = grid; this.laserBeams = laserBeams; this.game = game; explosionTexture = game.textures.explosion; Arrive += PlayerAvatar_Arrive; this.isSilverBot = isSilverBot; }
static void Main(string[] args) { MainGame game = new MainGame(); game.Run(); }