public override void load(SpriteFont font) { this.font = font; img_baller = Content.Load<Texture2D>("minigames/BelAir/baller"); img_hoop = Content.Load<Texture2D>("minigames/BelAir/hoop"); anim_baller = new Animation(img_baller, 1, 7, 10); pixel1 = Game1.hueGraphics.getSolidTexture(); snd_win = Content.Load<SoundEffect>("minigames/BelAir/slam"); snd_lose = Content.Load<SoundEffect>("minigames/default_fail"); bgm = Content.Load<Song>("minigames/BelAir/bgm_cmonand"); }
/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); defaultFont = Content.Load<SpriteFont>("defaultFont"); instructionFont = Content.Load<SpriteFont>("instructionFont"); hueGraphics = new HueGraphics(GraphicsDevice, instructionFont, spriteBatch); foreach (DictionaryEntry minigame in mg) { ((Minigame)minigame.Value).load(defaultFont); } // Create a new SpriteBatch, which can be used to draw textures. // TODO: use this.Content to load your game content here characters = Content.Load<Texture2D>("characters"); character1 = new Animation(characters, 1, 4, 1); character2 = new Animation(characters, 1, 4, 1); character3 = new Animation(characters, 1, 4, 1); character4 = new Animation(characters, 1, 4, 1); }