Ejemplo n.º 1
0
 public Pointer(TextSelections textSelection)
 {
     this.rows    = textSelection.Rows;
     this.columns = textSelection.Columns;
     this.shiftX  = textSelection.Rows;
     this.shiftY  = textSelection.Columns;
     lastColumn   = 0;
     lastRow      = 0;
     Sprite       = new Animation(Textures.mushroomPointer);
     x            = (int)textSelection.Position.X;
     y            = (int)textSelection.Position.Y + Sprite.Texture.Height / 2;
 }
Ejemplo n.º 2
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));
        }
Ejemplo n.º 3
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));
 }