protected virtual void CréerSection() { for (int i = 0; i < NB_REPOS; ++i) { ListeTerrains.Add(new TerrainDeBase(Jeu, HOMOTHÉTIE_INITIALE_TERRAIN, Vector3.Zero, new Vector3(PositionInitiale.X, PositionInitiale.Y, PositionInitiale.Z - HitBoxBase.Z * i), INTERVAL_MAJ, "stefpath")); } }
protected override void CréerSection() { bool gauche = true; float demiTerrain_X = (TAILLE_TERRAIN_X / 2f); for (int i = 0; i < 6; ++i) { if (gauche) { ListeTerrains.Add(new TerrainMobileSin(Jeu, HOMOTHÉTIE_INITIALE_TERRAIN, Vector3.Zero, new Vector3(PositionInitiale.X + demiTerrain_X * i, PositionInitiale.Y, PositionInitiale.Z - (HitBoxBase.Z * i)), 1 / 60f, "stefpath", "Gauche", 1 / 60f, i)); gauche = false; } else { ListeTerrains.Add(new TerrainMobileSin(Jeu, HOMOTHÉTIE_INITIALE_TERRAIN, Vector3.Zero, new Vector3(PositionInitiale.X + demiTerrain_X * i, PositionInitiale.Y, PositionInitiale.Z - (HitBoxBase.Z * i)), 1 / 60f, "stefpath", "Droite", 1 / 60f, i)); gauche = true; } } }
protected override void CréerSection() { ListeTerrains.Add(new TerrainDeBase(Jeu, HOMOTHÉTIE_INITIALE_TERRAIN, Vector3.Zero, new Vector3(PositionInitiale.X, PositionInitiale.Y, PositionInitiale.Z), INTERVAL_MAJ, "stefpath")); ListeTerrains.Add(new TerrainMobileSin(Jeu, HOMOTHÉTIE_INITIALE_TERRAIN, Vector3.Zero, new Vector3(PositionInitiale.X, PositionInitiale.Y, PositionInitiale.Z - HitBoxBase.Z), 1 / 60f, "stefpath", "Droite", 1 / 60f, 3)); ListeTerrains.Add(new TerrainDeBase(Jeu, HOMOTHÉTIE_INITIALE_TERRAIN, Vector3.Zero, new Vector3(PositionInitiale.X, PositionInitiale.Y, PositionInitiale.Z - HitBoxBase.Z * 2), INTERVAL_MAJ, "stefpath")); }