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