Ejemplo n.º 1
0
        public void Start(GameMode mode)
        {
            StaticDisplay.AddResizeListener(Resize);

            StaticMouse.AddMouseDownListener(MouseDown);
            StaticMouse.AddMouseUpListener(MouseUp);
            StaticMouse.AddMouseWheelListener(MouseWheel);

            StaticKeyboard.AddKeyDownListener(KeyDown);
            StaticKeyboard.AddKeyUpListener(KeyUp);
            ChangeScreen(GuiGameMenu);
        }
Ejemplo n.º 2
0
        public void Start(GameMode mode)
        {
            Round.StartHeight    = StaticDisplay.DisplayHeight;
            Round.StartWidth     = StaticDisplay.DisplayWidth;
            StaticDisplay.FPSCap = 150;
            Textures.LoadTextures();
            Round.LoadLevels();
            Round.CurrentLevel = Round.Levels[0];
            Round.PlayerOne    = new Human();

            StaticDisplay.AddResizeListener(Resize);
            StaticMouse.AddMouseDownListener(MouseDown);
            StaticKeyboard.AddKeyDownListener(KeyDown);
        }
Ejemplo n.º 3
0
 public void Start(GameMode mode)
 {
     if (mode == GameMode.SINGLEPLAYER)
     {
         multiplayer = false;
     }
     else
     {
         multiplayer = true;
     }
     StaticDisplay.AddResizeListener(Resize);
     StaticKeyboard.AddKeyDownListener(KeyDown);
     stopRequested = false;
     Restart();
 }
Ejemplo n.º 4
0
        public void Start(GameMode mode)
        {
            Round.StartHeight    = StaticDisplay.DisplayHeight;
            Round.StartWidth     = StaticDisplay.DisplayWidth;
            StaticDisplay.FPSCap = 80;
            Textures.LoadTextures();
            Round.LoadLevels();
            Round.CurrentLevel = Round.Levels[1];
            Round.PlayerOne    = new Human();
            Spider spider  = new Spider(new RectangleF(200, 400, 80, 80));
            Spider spider1 = new Spider(new RectangleF(800, 400, 80, 80));
            Spider spider2 = new Spider(new RectangleF(600, 400, 80, 80));
            Spider spider3 = new Spider(new RectangleF(1000, 400, 80, 80));

            StaticDisplay.AddResizeListener(Resize);
            StaticMouse.AddMouseDownListener(MouseDown);
            StaticKeyboard.AddKeyDownListener(KeyDown);
        }
Ejemplo n.º 5
0
 public void Start(GameMode mode)
 {
     fieldCountX = 13;
     fieldCountY = 11;
     field       = new Rectangle[fieldCountX, fieldCountY];
     if (mode == GameMode.SINGLEPLAYER)
     {
         multiplayer = false;
     }
     else
     {
         multiplayer = true;
     }
     StaticDisplay.AddResizeListener(Resize);
     StaticKeyboard.AddKeyDownListener(KeyDown);
     stopRequested = false;
     Restart();
     //System.Threading.Thread.Sleep(2000);
 }