示例#1
0
 protected override void LoadContent()
 {
     base.LoadContent();
     sb         = new SpriteBatch(GraphicsDevice);
     player     = new Player(this);
     currentPit = theGame.getWorld().getPit(0);
     agent      = new Agent();
     elliot     = new Elliott();
     scientist  = new Scientist();
     sndAction  = Game.Content.Load <SoundEffect>("action");
     theGame.Components.Add(player);
     theGame.Components.Add(currentPit);
     theGame.Components.Add(agent);
     theGame.Components.Add(elliot);
     theGame.Components.Add(scientist);
 }
示例#2
0
 public PitFall(Pit originalPit, int nummer)
     : base("pitfall")
 {
     this.originalPit = originalPit;
     this.nummer = nummer;
 }
示例#3
0
 public PitFall(Pit originalPit)
     : base("pitfall")
 {
     this.originalPit = originalPit;
 }
示例#4
0
 protected override void LoadContent()
 {
     base.LoadContent();
     sb = new SpriteBatch(GraphicsDevice);
     player = new Player(this);
     currentPit = theGame.getWorld().getPit(0);
     agent = new Agent();
     elliot = new Elliott();
     scientist = new Scientist();
     sndAction = Game.Content.Load<SoundEffect>("action");
     theGame.Components.Add(player);
     theGame.Components.Add(currentPit);
     theGame.Components.Add(agent);
     theGame.Components.Add(elliot);
     theGame.Components.Add(scientist);
 }
示例#5
0
 public void setCurrentPit(Pit pit)
 {
     Game.Components.Remove(currentPit);
     currentPit = pit;
     Game.Components.Add(pit);
 }
示例#6
0
 public PitFall(Pit originalPit, int nummer) : base("pitfall")
 {
     this.originalPit = originalPit;
     this.nummer      = nummer;
 }
示例#7
0
 public PitFall(Pit originalPit) : base("pitfall")
 {
     this.originalPit = originalPit;
 }
示例#8
0
 public void setCurrentPit(Pit pit)
 {
     Game.Components.Remove(currentPit);
     currentPit = pit;
     Game.Components.Add(pit);
 }