示例#1
0
 public void SetGremlins(Gremlins grem1,Gremlins grem2)
 {
     this.grem1 = grem1;
     this.grem2 = grem2;
 }
示例#2
0
 public void GetLevelDefaultConfig(Vector2 windowSize, ContentManager content)
 {
     Contenu.RemoveRange(0, Contenu.Count);
     leapHandler = new LeapHandler(content,worldFarseer);
     boundaries = getBounds(windowSize.X, windowSize.Y, worldFarseer);
     Plateform gnd = new Plateform(worldFarseer, new Vector2(405, windowSize.Y - 30), plateformsTex.Texture);
     Water wat1 = new Water(new Vector2(windowSize.X - 125, windowSize.Y - 40), worldFarseer, content);
     Water wat2 = new Water(new Vector2(windowSize.X - 302, windowSize.Y - 40), worldFarseer, content);
     Water wat3 = new Water(new Vector2(windowSize.X - 548, windowSize.Y - 40), worldFarseer, content);
     Water wat4 = new Water(new Vector2(windowSize.X - 795, windowSize.Y - 40), worldFarseer, content);
     Plateform gnd2 = new Balance(worldFarseer, new Vector2(plateformsTex.Texture.Width + 2, windowSize.Y / 2), plateformsTex.Texture);
     this.contentManager = content;
     grem1 = new Gremlins("Guizmo", new Vector2(100, 0), gremlins1Tex.Texture, worldFarseer);
     grem2 = new Gremlins("Daffy", new Vector2(850, 0), gremlins2Tex.Texture, worldFarseer);
     isWinner = false;
     LoadContent();
     Contenu.AddRange(new Component[] { gnd, gnd2, wat1, wat2, wat3, wat4 });
 }