Esempio n. 1
0
        public SWarpZoneScreen(Game1 game)
        {
            Game       = game;
            Game.state = this;
            Level      = new Level(game, "warpzone");
            Level.InitializeObjects();
            HUD.TIME = 999;

            textSelections = new TextSelections(HotDAMN.TEXT_WARP_ZONE_SELECTIONS, Game.GraphicsDevice.Viewport.Width, Game.GraphicsDevice.Viewport.Height);
            pointer        = new Pointer(textSelections);
            new List <Keys>();
            controllers = new List <IController>();
            controllers.Add(new CustomKeyboard(Game, pointer));
        }
Esempio n. 2
0
 public STitleScreen(Game1 game)
 {
     Game       = game;
     Game.state = this;
     Level      = new Level(game, "0-1");
     Level.InitializeObjects();
     HUD.TIME          = 999;
     HUD.currentPlayer = 0;
     textSelections    = new TextSelections(HotDAMN.TEXT_TITLE_SCREEN_SELECTIONS, Game.GraphicsDevice.Viewport.Width, Game.GraphicsDevice.Viewport.Height);
     pointer           = new Pointer(textSelections);
     new List <Keys>();
     controllers = new List <IController>();
     controllers.Add(new KeyboardCommands(Game, pointer));
 }
Esempio n. 3
0
        public SInLevel(Game1 game, String levelName)
        {
            Game       = game;
            Game.state = this;
            int sublevelName = levelName.IndexOf(HotDAMN.TAG_SUBLEVEL);
            int nameName     = levelName.IndexOf(HotDAMN.TAG_NAME);

            this.levelName = levelName.Substring(0, sublevelName != -1 ? sublevelName : (nameName != -1 ? nameName : levelName.Length));
            // WHERE YOU CHANGE THE LEVEL
            Level = new Level(game, levelName);
            Level.InitializeObjects();
            counter = 0;

            controllers = new List <IController>();
            controllers.Add(new KeyboardCommands(game, level: Level));
        }