Ejemplo n.º 1
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};
    }
 public void LoadAssets()
 {
     background = FullScreenQuad.create("SceneTwelve/bgletgo");
     bottomDither = resourceFactory.Create("SceneTwelve/BottomDither");
     background.visible(false);
     bottomDither.SetActive(false);
 }
Ejemplo n.º 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);
    }
Ejemplo n.º 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);
    }
Ejemplo n.º 5
0
 public void createBackground()
 {
     room = FullScreenQuad.create(this, "hospital_bg");
 }