コード例 #1
0
ファイル: 傷害特效.cs プロジェクト: z6842001/ken_2018
        /// <summary>
        /// 建構式
        /// </summary>
        public 傷害特效()
        {
            _SuperMan_Point = new Point(-50, 180);
            特效 = new Bitmap(Properties.Resources.特效, new Size(80, 80));

            特效光影          = new Timer();
            特效光影.Enabled  = true;
            特效光影.Tick    += new EventHandler(淡化效果_Tick);
            特效光影.Interval = 10;



            autoGif_A = new Other_AutoGif(new Bitmap[] {
                MyResource.Get標1("1"), MyResource.Get標1("2"), MyResource.Get標1("3"),
                MyResource.Get標1("4"), MyResource.Get標1("5"), MyResource.Get標1("6"),
                MyResource.Get標1("7"), MyResource.Get標1("8"), MyResource.Get標1("9"),
                MyResource.Get標1("10"), MyResource.Get標1("11"), MyResource.Get標1("12")
            },
                                          new Size(40, 40));
            autoGif_B = new Other_AutoGif(new Bitmap[] {
                MyResource.Get標2("1"), MyResource.Get標2("2"), MyResource.Get標2("3"),
                MyResource.Get標2("4"), MyResource.Get標2("5"), MyResource.Get標2("6"),
                MyResource.Get標2("7"), MyResource.Get標2("8"), MyResource.Get標2("9"),
                MyResource.Get標2("10"), MyResource.Get標2("11"), MyResource.Get標2("12")
            },
                                          new Size(60, 60));


            Delegate_飛鏢 = new mydelegate(autoGif_A.NextBitmap);
        }
コード例 #2
0
        //static strings[] 傷害 = new strings[10];


        /// <summary>
        /// 建構式
        /// </summary>
        public Game_傷害數字()
        {
            ImageList_Normal.TransparentColor = System.Drawing.Color.Transparent;
            ImageList_Normal.ImageSize        = new Size(Normal_間距 * 2, Normal_間距 * 2);
            ImageList_Normal.Images.Add(Properties.Resources._0);
            ImageList_Normal.Images.Add(Properties.Resources._1);
            ImageList_Normal.Images.Add(Properties.Resources._2);
            ImageList_Normal.Images.Add(Properties.Resources._3);
            ImageList_Normal.Images.Add(Properties.Resources._4);
            ImageList_Normal.Images.Add(Properties.Resources._5);
            ImageList_Normal.Images.Add(Properties.Resources._6);
            ImageList_Normal.Images.Add(Properties.Resources._7);
            ImageList_Normal.Images.Add(Properties.Resources._8);
            ImageList_Normal.Images.Add(Properties.Resources._9);


            ImageList_Crit.TransparentColor = System.Drawing.Color.Transparent;
            ImageList_Crit.ImageSize        = new Size(Crit_間距 * 2, Crit_間距 * 2);

            ImageList_Crit.Images.Add(MyResource.GetImage("Goad_0.gif"));
            ImageList_Crit.Images.Add(MyResource.GetImage("Goad_1.gif"));
            ImageList_Crit.Images.Add(MyResource.GetImage("Goad_2.gif"));
            ImageList_Crit.Images.Add(MyResource.GetImage("Goad_3.gif"));
            ImageList_Crit.Images.Add(MyResource.GetImage("Goad_4.gif"));
            ImageList_Crit.Images.Add(MyResource.GetImage("Goad_5.gif"));
            ImageList_Crit.Images.Add(MyResource.GetImage("Goad_6.gif"));
            ImageList_Crit.Images.Add(MyResource.GetImage("Goad_7.gif"));
            ImageList_Crit.Images.Add(MyResource.GetImage("Goad_8.gif"));
            ImageList_Crit.Images.Add(MyResource.GetImage("Goad_9.gif"));



            淡化          = new Timer();
            淡化.Enabled  = true;
            淡化.Tick    += new EventHandler(淡化效果_Tick);
            淡化.Interval = 50;
        }