public MainWindow() { InitializeComponent(); FoxDraw foxDraw = new FoxDraw(canvas); gameSetup = new GameSetup(canvas, 500); enemies = new Enemies(); headsUpDisplay = new HeadsUpDisplay(canvas); player = new Player(headsUpDisplay, enemies, canvas); graphics = new Draw(canvas, foxDraw, enemies, headsUpDisplay, player); Characters.AddToList(player); enemies.Add(new Enemy("Boss", player, canvas, Images.boss, 9, 9, true, 20, 20, 10)); enemies.Add(new Enemy("SkeletonA", player, canvas, Images.skeleton, 0, 5)); enemies.Add(new Enemy("SkeletonB", player, canvas, Images.skeleton, 4, 3)); enemies.Add(new Enemy("SkeletonC", player, canvas, Images.skeleton, 7, 8)); animator = new Animator(player, graphics); graphics.Refresh(); Sound.PlayMusic(Sounds.mapMusic); animator.SpriteAnimation(); }