Exemple #1
0
 public void LoadAssets()
 {
     background   = FullScreenQuad.create("SceneTwelve/bgletgo");
     bottomDither = resourceFactory.Create("SceneTwelve/BottomDither");
     background.visible(false);
     bottomDither.SetActive(false);
 }
Exemple #2
0
    public override void Setup(float startTime)
    {
        background  = FullScreenQuad.create(this, "bg");
        title       = Sprite.create(this, new[] { "tmo1", "tmo2", "tmo3", "tmo4", "tmo5", "tmo6" });
        subtitle    = Sprite.create(this, new[] { "p1", "p2", "p3", "p4", "p5", "p6" });
        news        = Sprite.create(this, new[] { "news1", "news2" });
        buyMusic    = Sprite.create(this, new[] { "itunes1", "itunes2" });
        startButton = Sprite.create(this, new[] { "tap1", "tap2", "tap3" });

        Camera cam = Camera.main;

        var layoutpos = cam.ViewportToWorldPoint(new Vector3(0.5f, 0.65f, 0.0f));

        layoutpos -= title.Center();
        // Programmer needs swizzling, badly.
        title.transform.position = new Vector3(layoutpos.x, layoutpos.y, title.transform.position.z);
        // Anchor the subtitle an absolute distance from wherever the title ended up
        subtitle.transform.position = title.transform.position + title.Center() + new Vector3(15f, -20f, -1f);

        // add blinking start text below title but don't display it yet
        startButton.setCenterToViewportCoord(0.5f, 0.4f);
        startButton.visible(false);

        // place buttons in the bottom corners
        news.setScreenPosition(4, 4);
        buyMusic.setScreenPosition((int)Screen.width - buyMusic.PixelWidth() - 4, 4);

        // animate title
        cycle_title = new Cycler(0.4f, 5);
        cycle_title.AddSprite(title);
        cycle_title.AddSprite(subtitle);
    }
Exemple #3
0
    public void Setup()
    {
        background = FullScreenQuad.create(this, "head_closeup_bg");

        faceLeftObject       = resourceFactory.Create(this, "FaceLeft");
        faceLeftObject.layer = 1;
        faceLeft.setWorldPosition(-50f, -60f, -1f);

        faceRightObject       = resourceFactory.Create(this, "FaceRight");
        faceRightObject.layer = 1;
        faceRight.setWorldPosition(10f, -60f, -1f);
    }
Exemple #4
0
    public override void Setup(float startTime)
    {
        endScene();

        background = FullScreenQuad.create("TodoList/todo_bg");

        spreadConfetti = new ScrollLetters(confetti);
        spreadConfetti.Setup(startTime);

        todoList = Sprite.create("TodoList/todo");
        todoList.setCenterToViewportCoord(0.5f, 0.5f);
        todoList.setDepth(-1);
    }
Exemple #5
0
    public override void LoadAssets()
    {
        background = FullScreenQuad.create("TitleScene/bg");
        background.visible(false);

        same     = Sprite.create(this, "same");
        notSame  = Sprite.create(this, "notsame", "notsame_caps", "notsame_g1", "notsame_g2");
        circle   = Sprite.create(this, "circle1", "circle2", "circle3", "circle4", "circle5");
        triangle = Sprite.create(this, "triangle1", "triangle2", "triangle3");

        same.visible(false);
        notSame.visible(false);
        circle.visible(false);
        triangle.visible(false);
    }
Exemple #6
0
    public override void LoadAssets()
    {
        background = FullScreenQuad.create(this, "pedal_stomp_bg");
        shoe       = resourceFactory.Create("SceneTen/Shoe");
        amp        = resourceFactory.Create(this, "Amp");
        wires      = resourceFactory.Create(this, "Wires");
        wireShadow = resourceFactory.Create(this, "WireShadow");

        background.visible(false);
        shoe.SetActive(false);
        amp.SetActive(false);
        wires.SetActive(false);
        wireShadow.SetActive(false);


        // double the scale on all of these because the art is half-size
        shoe.transform.localScale = Vector3.one * 2;
        shoe.GetComponent <Sprite>().setScreenPosition(0, 164);
        amp.GetComponent <Sprite>().setScreenPosition(130, 50);
        amp.transform.localScale = Vector3.one * 2;
        wires.GetComponent <Sprite>().setScreenPosition(30, 30);
        wires.transform.localScale = Vector3.one * 2;
        wireShadow.GetComponent <Sprite>().setScreenPosition(30, 30);
        wireShadow.transform.localScale = Vector3.one * 2;

        pedalStomped = new PedalStomped(new List <Sprite> {
            ampSprite, wiresSprite, wireShadowSprite
        });
        pedalUnStomped = new PedalUnStomped(new List <Sprite> {
            ampSprite, wiresSprite, wireShadowSprite
        });
        stompFoot = new StompFoot(new List <Sprite> {
            shoeSprite
        });
        retractFoot = new RetractFoot(new List <Sprite> {
            shoeSprite
        });
        animatables = new[] { pedalStomped, pedalUnStomped, stompFoot, retractFoot };
    }
Exemple #7
0
 public void createBackground()
 {
     room = FullScreenQuad.create(this, "hospital_bg");
 }