Пример #1
0
    void Start()
    {
        RXDebug.Log("Starting the demo");
        instance = this;
        Go.defaultEaseType = EaseType.Linear;
        Go.duplicatePropertyRule = DuplicatePropertyRuleType.RemoveRunningProperty;
        FutileParams fparams = new FutileParams(true,true, false,false);

        fparams.AddResolutionLevel(480.0f,	1.0f,	1.0f, ""); //iPhone
        //		fparams.AddResolutionLevel(960.0f,	2.0f,	2.0f,	"_Scale2"); //iPhone retina
        fparams.AddResolutionLevel(1024.0f,	1.0f,	1.0f,	""); //iPad
        //		fparams.AddResolutionLevel(1280.0f,	2.0f,	2.0f,	"_Scale2"); //Nexus 7
        //		fparams.AddResolutionLevel(2048.0f,	4.0f,	4.0f,	"_Scale4"); //iPad Retina

        fparams.origin = new Vector2(0.5f,0.5f);

        Futile.instance.Init (fparams);
        Futile.atlasManager.LoadAtlas("Atlases/SFB");
                Futile.atlasManager.LoadAtlas("Atlases/SFB_en");

                Futile.atlasManager.LoadFont("font", "font", "Atlases/font", 0, 0);

        _stage = Futile.stage;

         GoToPage(PageType.MenuPage);

        _stage.ListenForUpdate (HandleUpdate);
    }
Пример #2
0
    void Start()
    {
        RXDebug.Log("Starting the demo");
        instance                 = this;
        Go.defaultEaseType       = EaseType.Linear;
        Go.duplicatePropertyRule = DuplicatePropertyRuleType.RemoveRunningProperty;
        FutileParams fparams = new FutileParams(true, true, false, false);

        fparams.AddResolutionLevel(480.0f, 1.0f, 1.0f, "");                //iPhone
//		fparams.AddResolutionLevel(960.0f,	2.0f,	2.0f,	"_Scale2"); //iPhone retina
        fparams.AddResolutionLevel(1024.0f, 1.0f, 1.0f, "");               //iPad
//		fparams.AddResolutionLevel(1280.0f,	2.0f,	2.0f,	"_Scale2"); //Nexus 7
//		fparams.AddResolutionLevel(2048.0f,	4.0f,	4.0f,	"_Scale4"); //iPad Retina

        fparams.origin = new Vector2(0.5f, 0.5f);

        Futile.instance.Init(fparams);
        Futile.atlasManager.LoadAtlas("Atlases/SFB");
        Futile.atlasManager.LoadAtlas("Atlases/SFB_en");

        Futile.atlasManager.LoadFont("font", "font", "Atlases/font", 0, 0);


        _stage = Futile.stage;

        GoToPage(PageType.MenuPage);

        _stage.ListenForUpdate(HandleUpdate);
    }