示例#1
0
        public void Test01()
        {
            for (; ;)
            {
                DDCurtain.DrawCurtain();

                DDPrint.SetPrint(); DDPrint.Print("RETURN ==> " + DDKey.GetInput(DX.KEY_INPUT_RETURN));
                DDPrint.PrintRet(); DDPrint.Print("SPACE  ==> " + DDKey.GetInput(DX.KEY_INPUT_SPACE));
                DDPrint.PrintRet(); DDPrint.Print("Z      ==> " + DDKey.GetInput(DX.KEY_INPUT_Z));
                DDPrint.PrintRet(); DDPrint.Print("X      ==> " + DDKey.GetInput(DX.KEY_INPUT_X));
                DDPrint.PrintRet(); DDPrint.Print("DIR_4  ==> " + DDKey.GetInput(DX.KEY_INPUT_LEFT));
                DDPrint.PrintRet(); DDPrint.Print("DIR_6  ==> " + DDKey.GetInput(DX.KEY_INPUT_RIGHT));
                DDPrint.PrintRet(); DDPrint.Print("DIR_8  ==> " + DDKey.GetInput(DX.KEY_INPUT_UP));
                DDPrint.PrintRet(); DDPrint.Print("DIR_2  ==> " + DDKey.GetInput(DX.KEY_INPUT_DOWN));

                DDEngine.EachFrame();
            }
        }
示例#2
0
        public void Test01()
        {
            for (; ;)
            {
                DDCurtain.DrawCurtain();

                DDPrint.SetPrint();

                DDPrint.Print("PrimaryPadId: " + DDGround.PrimaryPadId);
                DDPrint.PrintRet();

                for (int btnId = 0; btnId < DDPad.PAD_BUTTON_MAX; btnId++)
                {
                    DDPrint.Print(btnId + " ==> " + DDPad.GetInput(DDGround.PrimaryPadId, btnId));
                    DDPrint.PrintRet();
                }
                DDEngine.EachFrame();
            }
        }
示例#3
0
        public void Main01()
        {
            FileTools.Delete(W_DIR);
            FileTools.CreateDir(W_DIR);

            this.SpData = new SpectrumData(Path.Combine(R_DIR, "Spectrum.csv"));

            while (this.Frame < this.SpData.Rows.Length)
            {
                double[] row = this.SpData.Rows[this.Frame];

                DDCurtain.DrawCurtain();
                DDPrint.SetPrint(0, 20, 23);

                for (int index = 0; index < 45; index++)
                {
                    double lv = 0.0;

                    for (int c = 0; c < 2; c++)
                    {
                        lv += row[index * 2 + c];
                    }

                    int iLv = DoubleTools.ToInt(lv * 145.0);

                    for (int c = 0; c < iLv; c++)
                    {
                        DDPrint.Print("*");
                    }

                    DDPrint.PrintRet();
                }

                this.MG_EachFrame();
            }
        }