Ejemplo n.º 1
0
        public Minigame(Game1 game)
            : base(game)
        {
            this.game = game;
            manager = new MgManager(this, game);
            screen = new MgScreen(this, manager, game);
            manager.screen = screen;
            hudMg = game.hud.hudMg;

            active = false;

            successCount = 0;
            maxBeats = 12;
            maxDubs = 4;
            holdTime = 0;

            displayer = new MgDisplayer(this, manager, game);
            game.modelManager.addEffect(displayer);

            models = new MgModelManager(game, this);

            defaultInstance = new MgInstance(game, this);
            defaultInstance.generateNew();
            manager.loadInstance(defaultInstance);
            manager.reset();

            game.hud.expSelect.setMinigame(this);
            triggeredHelp = false;
        }
Ejemplo n.º 2
0
        public MgDisplayer(Minigame minigame, MgManager manager, Game1 game)
            : base()
        {
            this.minigame = minigame;
            this.manager = manager;
            this.game = game;
            screen = minigame.screen;

            scale = new Vector3(0.25f);

            model = ModelLibrary.mgScreen;
            rot.X = MathHelper.Pi / 2.8f;

            sb = new SpriteBatch(game.GraphicsDevice);
            rTarg = new RenderTarget2D(game.GraphicsDevice, 64, 64);

            visible = false;

            linePos = Vector2.Zero;

            blue = new Color(179, 235, 255);
        }