Inheritance: MonoBehaviour
Exemplo n.º 1
0
    void Start()
    {
        if (instance == null)
        {
            instance = this;
        }

        FutileParams fp = new FutileParams(true, true, false, false);

        fp.AddResolutionLevel(480f, 1.0f, 1.0f, "-res1");
        fp.AddResolutionLevel(1136f, 2.0f, 2.0f, "-res2");
        fp.AddResolutionLevel(2048f, 4.0f, 4.0f, "-res4");
        fp.backgroundColor = new Color(0.3f, 0.3f, 0.3f, 1.0f);
        fp.origin          = Vector2.zero;

        Futile.instance.Init(fp);

        Futile.atlasManager.LoadAtlas("Atlases/ExtrudersSheet");
        Futile.atlasManager.LoadAtlas("Atlases/ImmunitySheet");
        Futile.atlasManager.LoadFont("TwCen", "twCen.png", "Atlases/twCen", 0, 0);

        Go.defaultEaseType = EaseType.SineInOut;

        SwitchToScene(SceneType.Immunity);
    }
Exemplo n.º 2
0
    void Start()
    {
        if (instance == null) instance = this;

        FutileParams fp = new FutileParams(true, true, false, false);
        fp.AddResolutionLevel(1024f, 1.0f, 1.0f, "");

        fp.backgroundColor = new Color(0.12f, 0.12f, 0.12f, 1.0f);
        fp.origin = Vector2.zero;

        Futile.instance.Init(fp);

        Futile.atlasManager.LoadAtlas("Atlases/ExtrudersSheet");
        Futile.atlasManager.LoadAtlas("Atlases/MainSheet");
        Futile.atlasManager.LoadAtlas("Atlases/CompartmentsSheet");
        //Futile.atlasManager.LoadFont("SoftSugar", "SoftSugar", "Atlases/MainSheet", 0, 0);

        Go.defaultEaseType = EaseType.SineInOut;

        SwitchToScene(SceneType.Hexagon);
    }
Exemplo n.º 3
0
    void Start()
    {
        if (instance == null) instance = this;

        FutileParams fp = new FutileParams(true, true, false, false);
        fp.AddResolutionLevel(480f, 1.0f, 1.0f, "-res1");
        fp.AddResolutionLevel(1136f, 2.0f, 2.0f, "-res2");
        fp.AddResolutionLevel(2048f, 4.0f, 4.0f, "-res4");
        fp.backgroundColor = new Color(0.3f, 0.3f, 0.3f, 1.0f);
        fp.origin = Vector2.zero;

        Futile.instance.Init(fp);

        Futile.atlasManager.LoadAtlas("Atlases/ExtrudersSheet");
        Futile.atlasManager.LoadAtlas("Atlases/ImmunitySheet");
        Futile.atlasManager.LoadFont("TwCen", "twCen.png", "Atlases/twCen", 0, 0);

        Go.defaultEaseType = EaseType.SineInOut;

        SwitchToScene(SceneType.Immunity);
    }
Exemplo n.º 4
0
    void Start()
    {
        Screen.showCursor = false;
        //Screen.SetResolution(1920, 1080, true);
        //SetupLetterbox(Futile.instance.camera);

        if (instance == null) instance = this;

        FutileParams fp = new FutileParams(true, true, false, false);
        fp.AddResolutionLevel(1920f, 1.0f, 1.0f, "-sixPack");
        fp.backgroundColor = Color.white;
        fp.origin = Vector2.zero;
        //fp.shouldLerpToNearestResolutionLevel = false;

        Futile.instance.Init(fp);

        FSoundManager.PlayMusic("jazz");

        Futile.atlasManager.LoadAtlas("Atlases/MainSheet");
        Futile.atlasManager.LoadAtlas("Atlases/TitlePageSheet");
        Futile.atlasManager.LoadFont("Silkscreen", "Silkscreen.png", "Atlases/Silkscreen");

        Go.defaultEaseType = EaseType.SineInOut;

        animationManager = new WTAnimationManager();

        animationManager.AddAnimation("drinkerWalk", new string[] {
            "drinkerIdle.png",
            "drinkerLeftFront.png",
            "drinkerIdle.png",
            "drinkerRightFront.png"}, 0.05f, 0.4f, true);

        animationManager.AddAnimation("drinkerSitTransition", new string[] {
            "drinkerIdle.png",
            "drinkerSittingTrans0.png",
            "drinkerSittingTrans1.png",
            "drinkerSitting.png"}, 0.05f, false);

        animationManager.AddAnimation("drinkerStandTransition", new string[] {
            "drinkerSitting.png",
            "drinkerSittingTrans1.png",
            "drinkerSittingTrans0.png",
            "drinkerIdle.png"}, 0.05f, false);

        animationManager.AddAnimation("pee", new string[] {
            "pee0.png",
            "pee1.png",
            "pee2.png",
            "pee3.png",
            "pee4.png",
            "pee5.png"}, 0.15f, false);

        animationManager.AddAnimation("drinkSpill", new string[] {
            "glassSpill0.png",
            "glassSpill1.png",
            "glassSpill2.png",
            "glassSpill3.png"}, 0.08f, false);

        animationManager.AddAnimation("punch", new string[] {
            "drinkerPunching.png"}, 0.05f, false);

        animationManager.AddAnimation("drinkerPassOut", new string[] {
            "drinkerPassOut0.png",
            "drinkerPassOut1.png",
            "drinkerPassOut2.png",
            "drinkerPassOut3.png",
            "drinkerPassOut4.png"}, 0.04f, false);

        Futile.screen.SignalResize += HandleResize;

        SwitchToScene(SceneType.TitleScene);
    }