/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
//Инициализация public AnimatedSprite(Rectangle rect, Texture2D idle, Texture2D run, Texture2D jump, Game1 game) { this.rect = rect; this.idle = idle; this.run = run; this.jump = jump; frameWidth = frameHeight = run.Height; this.game = game; }