Beispiel #1
0
        override public void SettingByScript()
        {
            base.SettingByScript();
            //------------------------------------------------------------------------------------
            // define Common info
            //------------------------------------------------------------------------------------
            _slotConfig.ID   = 2;
            _slotConfig.host = "182.252.135.251";
            // _slotConfig.Host = "lbgames.sloticagames.com";
            _slotConfig.port     = 13500;
            _slotConfig.accessID = 1086; //or 1;
            _slotConfig.ver      = "0.0.1";
            _slotConfig.Jackpot  = true;
            _slotConfig.Betting  = new SlotBetting()
            {
                BetTable = new double[]
                {
                    100, 200, 500, 1000, 2000,
                    5000, 10000, 20000, 50000, 100000
                },
            };
            _slotConfig.DebugSymbolArea = false;
            _slotConfig.DebugTestSpin   = true;


            //------------------------------------------------------------------------------------
            // define machienConfig
            //------------------------------------------------------------------------------------
            var machine = new MachineConfig(_slotConfig);

            //base
            machine.row    = 3;
            machine.column = 5;

            //freespin
            machine.UseFreeSpin   = true;
            machine.TriggerType   = FreeSpinTriggerType.Select;
            machine.RetriggerType = FreeSpinRetriggerType.Add;

            //reel
            machine.ReelPrefab = Resources.Load <Reel>("games/" + _slotConfig.ID.ToString("00") + "/prefabs/Reel");
            machine.ReelSize   = new Size2D(1.04f, 2.04f);
            machine.ReelSpace  = 1.46f;
            machine.ReelGap    = 0.42f;

            //spin
            machine.MarginSymbolCount   = 1;
            machine.SpinningSymbolCount = 5;
            machine.IncreaseCount       = 5;
            machine.SpinCountThreshold  = 5;
            machine.SpinSpeedPerSec     = 15f;
            machine.DelayEachSpin       = 0.1f;
            machine.tweenFirstBackInfo  = new MoveTweenInfo(0.2f, 0.2f);
            machine.tweenLastBackInfo   = new MoveTweenInfo(0.2f, 0.3f);

            //transition
            machine.transition = new Transition()
            {
                ReelStopAfterDelay   = 0.5f,
                PlaySymbolAfterDelay = 0,
                EachWin                 = 1f,
                EachWinSummary          = 1f,
                EachLockReel            = 0.2f,
                LockReelAfterDelay      = 1f,
                FreeSpinTriggerDuration = 1f,
                AutoSpinDelay           = 0.2f
            };

            //paytable
            PaylineTable paylineTable = new PaylineTable
                                        (
                new int[][]
            {
                new int[] { 1, 1, 1, 1, 1 },
                new int[] { 0, 0, 0, 0, 0 },
                new int[] { 2, 2, 2, 2, 2 },
                new int[] { 0, 1, 2, 1, 0 },
                new int[] { 2, 1, 0, 1, 2 },

                new int[] { 1, 0, 0, 0, 1 },
                new int[] { 1, 2, 2, 2, 1 },
                new int[] { 0, 0, 1, 2, 2 },
                new int[] { 2, 2, 1, 0, 0 },
                new int[] { 1, 2, 1, 0, 1 },

                new int[] { 1, 0, 1, 2, 1 },
                new int[] { 0, 1, 1, 1, 0 },
                new int[] { 2, 1, 1, 1, 2 },
                new int[] { 0, 1, 0, 1, 0 },
                new int[] { 2, 1, 2, 1, 2 },

                new int[] { 1, 1, 0, 1, 1 },
                new int[] { 1, 1, 2, 1, 1 },
                new int[] { 0, 0, 2, 0, 0 },
                new int[] { 2, 2, 0, 2, 2 },
                new int[] { 0, 2, 2, 2, 0 },

                new int[] { 2, 0, 0, 0, 2 },
                new int[] { 1, 2, 0, 2, 1 },
                new int[] { 1, 0, 2, 0, 1 },
                new int[] { 0, 2, 0, 2, 0 },
                new int[] { 2, 0, 2, 0, 2 },
            }
                                        );

            machine.paylineTable = paylineTable;

            //symbol define
            machine.useEmpty   = false;
            machine.SymbolSize = new Size2D(1.04f, 0.68f);
            machine.ClearSymbolDefine();
            machine.TopChildSymbolType = SymbolType.Blank;
            machine.AddSymbolDefine("S0", SymbolType.FSScatter, 3);
            machine.AddSymbolDefine("W0", SymbolType.Wild);

            machine.AddSymbolDefine("B0", SymbolType.PGSVScatter);
            machine.AddSymbolDefine("B1", SymbolType.PGSVScatter);
            machine.AddSymbolDefine("B2", SymbolType.PGSVScatter);

            machine.AddSymbolDefine("H0", SymbolType.High);
            machine.AddSymbolDefine("H1", SymbolType.High);

            machine.AddSymbolDefine("M0", SymbolType.Middle);
            machine.AddSymbolDefine("M1", SymbolType.Middle);
            machine.AddSymbolDefine("M2", SymbolType.Middle);

            machine.AddSymbolDefine("L0", SymbolType.Low);
            machine.AddSymbolDefine("L1", SymbolType.Low);
            machine.AddSymbolDefine("L2", SymbolType.Low);

            //scatters
            machine.ClearScatterInfo();
            machine.AddScatterInfo(new ScatterInfo(SymbolType.FSScatter, 3, 3, 2, new int[] { 0, 2, 4 }));
            machine.AddScatterInfo(new ScatterInfo(SymbolType.PGSVScatter, 3, 9, 0, new int[] { 0, 1, 2, 3, 4 }));


            //startSymbol
            machine.SetStartSymbols(new string[][]
            {
                new string[] { L0, B0, H0, S0, L0 },
                new string[] { M0, M2, B1, M2, M0 },
                new string[] { M1, S0, L2, B2, M1 },
                new string[] { M0, M2, B1, M2, M0 },
                new string[] { L0, B0, H0, S0, L0 }
            });

            //reelStrip
            var stripsBundle = new ReelStripsBundle();

            stripsBundle.AddStrips(ReelStripsBundle.Group.Default, new string[][]
            {
                new string[] { B0, H0, L1, M1, W0, M0, S0, L2, M1, L0, B0, H1, L0, W0, M2, L1, L2, M0, L1, L2 },
                new string[] { H0, L1, M1, M0, W0, L2, M1, B1, L0, H1, L0, M2, L1, L2, M0, B1, L1, L2 },
                new string[] { H0, L1, M1, W0, W0, W0, M0, S0, L2, M1, L0, H1, L0, S0, M2, L1, B2, L2, M0, L1, L2 },
                new string[] { H0, L1, M1, M0, W0, L2, M1, B1, L0, H1, L0, M2, L1, L2, M0, B1, L1, L2 },
                new string[] { B0, H0, L1, M1, W0, M0, S0, L2, M1, L0, B0, H1, L0, W0, M2, L1, L2, M0, L1, L2 }
            }, ReelStrips.Type.Normal);

            stripsBundle.AddStrips(ReelStripsBundle.Group.Free, new string[][]
            {
                new string[] { B0, H0, L1 },
                new string[] { H0, L1, M1 },
                new string[] { H0, L1, M1, W0, W0 },
                new string[] { H0, L1, M1 },
                new string[] { B0, H0, L1 }
            }, ReelStrips.Type.Stack);

            machine.reelStripsBundle = stripsBundle;

            //register machineconfig
            _slotConfig.ClearMachines();
            _slotConfig.AddMachine(machine);
        }
Beispiel #2
0
        override public void SettingByScript()
        {
            base.SettingByScript();
            //------------------------------------------------------------------------------------
            // define Common info
            //------------------------------------------------------------------------------------
            _slotConfig.ID       = 1;
            _slotConfig.host     = "182.252.135.251";
            _slotConfig.port     = 13100;
            _slotConfig.accessID = 1086; //or 1;
            _slotConfig.ver      = "0.0.1";
            _slotConfig.Jackpot  = false;
            _slotConfig.Betting  = new SlotBetting()
            {
                BetTable = new double[]
                {
                    100, 200, 500, 1000, 2000,
                    5000, 10000, 20000, 50000, 100000,
                    200000, 300000, 500000, 1000000, 2000000,
                    3000000, 4000000, 5000000, 10000000, 20000000
                },
            };
            _slotConfig.DebugSymbolArea = false;
            _slotConfig.DebugTestSpin   = true;

            //------------------------------------------------------------------------------------
            // define machienConfig
            //------------------------------------------------------------------------------------
            var machine = new MachineConfig(_slotConfig);

            machine.row    = 3;
            machine.column = 3;

            //freespin
            machine.UseFreeSpin = false;

            //reel
            machine.ReelPrefab = Resources.Load <Reel>("games/" + ConvertUtil.ToDigit(_slotConfig.ID) + "/prefabs/Reel");
            machine.ReelSize   = new Size2D(2.1f, 2.5f);
            machine.ReelSpace  = 2.56f;
            machine.ReelGap    = 0.3f;

            //spin
            machine.MarginSymbolCount   = 1;
            machine.SpinningSymbolCount = 5;
            machine.IncreaseCount       = 5;
            machine.SpinCountThreshold  = 5;
            machine.SpinSpeedPerSec     = 15f;
            machine.DelayEachSpin       = 0.1f;
            machine.tweenFirstBackInfo  = new MoveTweenInfo(0.2f, 0.2f);
            machine.tweenLastBackInfo   = new MoveTweenInfo(0.2f, 0.3f);

            //transition
            machine.transition = new Transition()
            {
                ReelStopAfterDelay   = 0.5f,
                PlaySymbolAfterDelay = 0,
                EachWin                 = 1f,
                EachWinSummary          = 1f,
                EachLockReel            = 0.2f,
                LockReelAfterDelay      = 1f,
                FreeSpinTriggerDuration = 1f,
                AutoSpinDelay           = 0.2f
            };

            //symbol define
            machine.useEmpty        = true;
            machine.SymbolSize      = new Size2D(2.1f, 1.1f);
            machine.blankSymbolSize = new Size2D(2.1f, 0.3f);

            machine.ClearSymbolDefine();
            machine.TopChildSymbolType = SymbolType.Blank;
            machine.AddSymbolDefine("W0", SymbolType.Wild);

            machine.AddSymbolDefine("H0", SymbolType.High);
            machine.AddSymbolDefine("H1", SymbolType.High);
            machine.AddSymbolDefine("H2", SymbolType.High);

            machine.AddSymbolDefine("M0", SymbolType.Middle);
            machine.AddSymbolDefine("M1", SymbolType.Middle);
            machine.AddSymbolDefine("M2", SymbolType.Middle);

            machine.AddSymbolDefine("L0", SymbolType.Blank);

            //startSymbol
            machine.SetStartSymbols(new string[][]
            {
                new string[] { L0, SR, L0, SG, L0 },
                new string[] { BB, L0, W0, L0, BG },
                new string[] { L0, SB, L0, SG, L0 }
            });

            //paylineTable
            PaylineTable paylineTable = new PaylineTable
                                        (
                new int[][]
            {
                new int[] { 1, 1, 1 },
                new int[] { 0, 0, 0 },
                new int[] { 2, 2, 2 },
                new int[] { 0, 1, 2 },
                new int[] { 2, 1, 0 }
            }
                                        );

            machine.paylineTable = paylineTable;


            //reelStrip

            var stripsBundle = new ReelStripsBundle();

            stripsBundle.AddStrips(ReelStripsBundle.Group.Default, new string[][]
            {
                new string[] { SG, BG, SB, BR, SB, W0, SG, BR, SB, BR, SG, BR, BG, SB, W0 },
                new string[] { SG, BR, SB, BR, SB, W0, SG, BG, SB, BG, SG, BG, BR, SB, BG },
                new string[] { SG, BG, W0, BR, SB, SR, SB, BR, SB, SG, BR, BG, W0, BR, BR }
            });
            machine.reelStripsBundle = stripsBundle;

            //register machineconfig
            _slotConfig.ClearMachines();
            _slotConfig.AddMachine(machine);
        }