Exemple #1
0
        /// <summary>
        /// Initalise le niveau 1, WARNING load le level au constructeur!!!
        /// </summary>
        public level1(Game unJeu,GraphicsDeviceManager graphics, int screenHeight)
        {
            this.jeu = unJeu; height = screenHeight;
            ElementsCollision = new List<decor>();

            //Objet composant le décor
            LoadLevel(graphics);
            // Chargement paramètre clavier
            statutKeyboard = new libraries.keyboard(Keys.Up, Keys.Down, Keys.Right, Keys.Left, Keys.Space, Keys.Enter);
        }
Exemple #2
0
        /// <summary>
        /// Initalise le niveau 1, WARNING load le level au constructeur!!!
        /// </summary>
        public level1(Game unJeu, GraphicsDeviceManager graphics, int screenHeight)
        {
            this.jeu          = unJeu; height = screenHeight;
            ElementsCollision = new List <decor>();

            //Objet composant le décor
            LoadLevel(graphics);
            // Chargement paramètre clavier
            statutKeyboard = new libraries.keyboard(Keys.Up, Keys.Down, Keys.Right, Keys.Left, Keys.Space, Keys.Enter);
        }
Exemple #3
0
 /// <summary>
 /// Initalise le niveau 1, WARNING load le level au constructeur!!!
 /// </summary>
 public Menu(Game unJeu, int screenHeight, int screenWidth)
 {
     this.jeu = unJeu; this.height = screenHeight; this.width = screenWidth; this.LoadLevel(); position = 0;
     delais = new System.Diagnostics.Stopwatch(); delais.Stop();
     statutKeyboard = new libraries.keyboard(Keys.Up, Keys.Down, Keys.Right, Keys.Left, Keys.Space, Keys.Enter);
 }
Exemple #4
0
 /// <summary>
 /// Initalise le niveau 1, WARNING load le level au constructeur!!!
 /// </summary>
 public Menu(Game unJeu, int screenHeight, int screenWidth)
 {
     this.jeu       = unJeu; this.height = screenHeight; this.width = screenWidth; this.LoadLevel(); position = 0;
     delais         = new System.Diagnostics.Stopwatch(); delais.Stop();
     statutKeyboard = new libraries.keyboard(Keys.Up, Keys.Down, Keys.Right, Keys.Left, Keys.Space, Keys.Enter);
 }