Ejemplo n.º 1
0
        public void Draw(SpriteBatch sb)
        {
            this.background.Draw(sb);

            foreach (Sprite s in this.worldSprites)
            {
                s.Draw(sb);
            }
            PlayerIcon.Draw(sb);
        }
Ejemplo n.º 2
0
 public InputManager(List <Sprite> worldSprites, Sprite activeCharacter, Sprite inactiveCharacter, List <Sprite> platforms, List <SoundEffect> sounds, Level l)
 {
     this.level        = l;
     this.worldSprites = worldSprites;
     ActiveCharacter   = activeCharacter;
     InactiveCharacter = inactiveCharacter;
     this.Platforms    = platforms;
     previousState     = InactiveCharacter.state;
     this.sounds       = sounds;
     sum             = TimeSpan.Zero;
     this.playerIcon = playerIcon;
 }