Ejemplo n.º 1
0
        public static void LoadTextures()
        {
            game_fon = GImage.LoadTexture(PATH_ASSETS + "fon.png");
            g_1      = GImage.LoadTexture(PATH_ASSETS + "1.png");
            g_1_1    = GImage.LoadTexture(PATH_ASSETS + "1-1.png");
            g_2      = GImage.LoadTexture(PATH_ASSETS + "2.png");
            g_2_2    = GImage.LoadTexture(PATH_ASSETS + "2-2.png");
            g_3      = GImage.LoadTexture(PATH_ASSETS + "3.png");
            g_3_3    = GImage.LoadTexture(PATH_ASSETS + "3-3.png");
            g_4      = GImage.LoadTexture(PATH_ASSETS + "4.png");
            g_4_4    = GImage.LoadTexture(PATH_ASSETS + "4-4.png");
            g_5      = GImage.LoadTexture(PATH_ASSETS + "5.png");
            g_5_5    = GImage.LoadTexture(PATH_ASSETS + "5-5.png");
            train    = GImage.LoadTexture(PATH_ASSETS + "train.png");

            lcat = new uint[16];
            for (int i = 0; i < lcat.Length; i++)
            {
                lcat[i] = GImage.LoadTexture(PATH_ASSETS + @"cat\L\" + (i + 1) + ".png");
            }

            rcat = new uint[16];
            for (int i = 0; i < rcat.Length; i++)
            {
                rcat[i] = GImage.LoadTexture(PATH_ASSETS + @"cat\R\" + (i + 1) + ".png");
            }
        }
Ejemplo n.º 2
0
        public override void Resume()
        {
            GResource.LoadTextures();

            imgLMD = new GImage(Game);
            imgLMD.SetTexture(GResource.game_fon);
            imgLMD.SetWidth(250);
            imgLMD.SetHeight(200);
            imgLMD.SetX(Game.GetWindowWidth() / 2);
            imgLMD.SetY(Game.GetWindowHeight() / 2 + 100);
            AddElement(imgLMD);

            CircleButton but = new CircleButton(Game);

            but.onClick += ScreenStart_onClick;
            but.SetX(Game.GetWindowWidth() / 2);
            but.SetY(150);
            but.SetRadius(80);
            but.SetImage(GImage.LoadTexture(@"C:\Users\User\Desktop\WarBugs\button_play.png"));

            GameFramewerk.UI.Animations.AnimationScale anim = new GameFramewerk.UI.Animations.AnimationScale();
            anim.Initialize(but.GetWidth(), but.GetHeight(), but.GetWidth() + 20, but.GetHeight() + 20, 4, 4, but);

            AddElement(but);
        }