Beispiel #1
0
        public override void Initialize()
        {
            this.LoadContent();
            trashImage.LoadResources();

            characterPosition = new Vector2(50, 100);
            leftTile          = 0;
            leftBin           = (int)(TRASH_SPEED * 5);
            parity            = 0;

            Trash.hasSelected = true;

            Trashbin tb = new Trashbin(3, 0);

            tb.Name = "organic-bin";
            tb.Type = TrashType.ORGANIC;
            trashbins.Add(tb);

            tb      = new Trashbin(3, 0);
            tb.Name = "inorganic-bin";
            tb.Type = TrashType.INORGANIC;
            trashbins.Add(tb);

            //sound effects
            sm.LoadBanks();
        }
Beispiel #2
0
 public void LoadContent()
 {
     spriteBatch = new SpriteBatch(device);
     spriteFont  = content.Load <SpriteFont>("font/hugmetight");
     trashImage.LoadResources();
 }