Пример #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to Kyu by Vrien Studios...");
            Console.WriteLine("Loading Art Resources");
            Resx.Classes.Resources.GetAllDirs(Directory.GetCurrentDirectory() + "\\resx", new string[] { });

            screenClass screenDim = new screenClass();

            foreach (string str in Resx.Classes.Resources.dirs)
            {
                Console.WriteLine(str);
            }

            Resx.Classes.Resources.LoadImages();
            handle = new KyuWIN.WinComponents.FHandle(800, 800, new Point(0, 0), "VTest", false);
            Bitmap   bg = new Bitmap(handle.xOffset, handle.yOffset);
            Graphics b  = Graphics.FromImage(bg);

            b.Clear(Color.Black);
            FObject fobj = new FObject(0, 0, bg);

            fobj.onMouseHover += Fobj_onMouseHover;
            handle.AddFObject(fobj);
            fobj.DrawStringCenter("Thank you for playing!\nClick to Continue");
            fobj.DrawString(0, 0, "Beta");

            fobj.onClick += Fobj_onClick;
        }
Пример #2
0
        public override FObject[] LoadScene(screenClass screen = null)
        {
            //Resource res = Resources.GetResource("beachmoon-1.jpg");
            //res.resize(800, 800);
            //Bitmap b = res.bmp;
            Bitmap b = Resources.GetResource("beachmoon-1.jpg").asBmp();

            b = Resources.ResizeBmp(800, 800, b);
            FObject background = new FObject(0, 0, b);

            background.onMouseHover += Background_onMouseHover;
            ChoiceList menus = new ChoiceList(0, 0, 100, new string[] { "Play", "Credits" }, Resources.ResizeBmp(200, 50, Resources.GetResource("building-1.jpg").asBmp()));

            menus.Center(800, 400);
            //Reverse order as they should appear.
            return(new FObject[] { menus.choices[0], menus.choices[1], background });
        }
Пример #3
0
 public abstract FObject[] LoadScene(screenClass screen = null);