示例#1
0
        public void Draw(SpriteBatch sb)
        {
            this.background.Draw(sb);

            foreach (Sprite s in this.worldSprites)
            {
                s.Draw(sb);
            }
            PlayerIcon.Draw(sb);
        }
 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;
 }