Пример #1
0
    public void draw1()
    {
        g.sc(210);
        //	g.str(m.cs(key_input[0]),560,400);

        //	if (key_on_box[4][0]==true){
        //		g.str(m.cs(key_on_box[4][0]),560,380);
        //	}
    }
Пример #2
0
    public void draw1()
    {
        //一旦別画面にゲームの内容を描画

        /*
         * {
         *  g1.make_draw_screen_img(640, 480);
         *  g1.make_draw_screen_img(s1.display_w_call(), s1.display_h_call());
         * }
         */

        //画面初期化
        g1.sc(32);
        g1.drawRect(0, 0, s1.display_w, s1.display_h);


        //これを入れておかないと、スクリーンキャプチャーの際に、画像たちの透過が乗算されてしまう
        //        DX.SetDrawBlendMode(DX.DX_BLENDMODE_PMA_ALPHA, 255);

        /*
         * s.ti.draw();
         *
         * s.tc.draw();
         */

        s1.draw1();



        //        s.meg.draw();

        //     s.tw.draw();


        if (s1.debug_draw() == 1)
        {
            int nt2 = 540, nt1 = 24;

            g1.sc(232);
            g1.str2("Run  :" + wait_time[0], nt2 - 12, 24 - 4);
            g1.str2("Draw :" + wait_time[1], nt2 - 12, 24 - 4 + nt1 * 1);
            g1.str2("Max  :" + wait_time[2], nt2 - 12, 24 - 4 + nt1 * 2);


            g1.str2("Open :" + wait_time[4], nt2 - 12, 24 - 4 + nt1 * 4);
            g1.str2("Mem  :" + memory_memo + " MB", nt2 - 12, 24 - 4 + nt1 * 5);

            int pp3 = 7;

            g1.str2("Touch_x  :" + s1.touch_input.point_x1(), nt2 - 12, 24 - 4 + nt1 * (pp3 + 0));
            g1.str2("Touch_y  :" + s1.touch_input.point_y1(), nt2 - 12, 24 - 4 + nt1 * (pp3 + 1));

            {
                int pp4 = 10;

                g1.str2("Effect : " + s1.effect_group.active_num_check() + " / " + s1.effect_group.max_num(), nt2 - 12, 24 - 4 + nt1 * (pp4 + 0));
            }


            //            g1.sc(232);
            g1.str2("FPS : " + fps, nt2 - 12, 460 - 4);


            int ntp = 1;
            if (s1.mr1.game_type == 0)
            {
                ntp = 0;
            }

            if (ntp == 1)
            {
                g1.str2("" + s1.title_name1(), 760 - 12 - 8, 524 - 4);
                //g1.str2("" + s1.title_name, 740 + 64, 524 - 4);
            }
        }

        /*
         * {
         *  ImageData1 id1 = g1.make_draw_screen_img_re();
         *
         *  g1.drawImage2(id1, 0, 0, 1.0f);
         *
         *  g1.delete_graph(id1);//画像生成した後は、削除が必須。忘れると危険
         * }
         */


        //     DX.SetDrawBlendMode(DX.DX_BLENDMODE_NOBLEND, 255);

        //   if (s1.tm1 <= 20)
        DX.ScreenFlip();

        //   m1.wait(3000);
    }