Beispiel #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);
 }
Beispiel #2
0
 public PitFall(Pit originalPit, int nummer)
     : base("pitfall")
 {
     this.originalPit = originalPit;
     this.nummer = nummer;
 }
Beispiel #3
0
 public PitFall(Pit originalPit)
     : base("pitfall")
 {
     this.originalPit = originalPit;
 }
Beispiel #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);
 }
Beispiel #5
0
 public void setCurrentPit(Pit pit)
 {
     Game.Components.Remove(currentPit);
     currentPit = pit;
     Game.Components.Add(pit);
 }
Beispiel #6
0
 public PitFall(Pit originalPit, int nummer) : base("pitfall")
 {
     this.originalPit = originalPit;
     this.nummer      = nummer;
 }
Beispiel #7
0
 public PitFall(Pit originalPit) : base("pitfall")
 {
     this.originalPit = originalPit;
 }
Beispiel #8
0
 public void setCurrentPit(Pit pit)
 {
     Game.Components.Remove(currentPit);
     currentPit = pit;
     Game.Components.Add(pit);
 }