Exemple #1
0
    IEnumerator C_StartRoomActions(float StartDelay)
    {
        Manipluation.RotateDegrees(3, 0.1f, 90, false);

        for (float I = 3; I < 13; I = I + 1f)
        {
            Manipluation.PlayClip(I, SpinEffect1);
            Manipluation.PlayClip(I, SpinEffect2);
            Manipluation.PlayClip(I, SpinEffect3);
        }

        yield return(StartCoroutine(C_RandomMedusaSpam(14)));

        Manipluation.RotateDegrees(3, 0.1f, 90, false);
        for (float I = 3; I < 13; I = I + 1f)
        {
            Manipluation.PlayClip(I, SpinEffect1);
            Manipluation.PlayClip(I, SpinEffect2);
            Manipluation.PlayClip(I, SpinEffect3);
        }

        O_EndPathSpawner.CreateLineInDirection(14, 0.7f, 9, new Vector2(1, 0), 5);
        for (float I = 14; I < 14 + 9 * 0.7f; I = I + 0.7f)
        {
            Manipluation.PlayClip(I, BlockAppearing);
        }
    }
Exemple #2
0
    // This creates a pinwheel type object
    void Action1()
    {
        NewObjectSpawner Object1 = CreateNewObjectSpawner();

        Object1.SetProjectile(0, Projectile1);

//		Object1.MoveObjectToPoint (0, Object1.gameObject, UpperLeftCorner.position, 0);
        Object1.CreateMultiLines_World(1, 0.1f, 5, 2, 10);
        Object1.RotateDegrees(1, null, 1, 360, true);
    }
Exemple #3
0
    void OnEnable()             // Create all of the objects
    {
//		Instantiate (BossMusic_Controller);
//		MusicController.control.Fade_Play_Unfade (BossMusic);
        MusicController.control.PlayNewClip(BossMusic);

        NewObjectSpawner TEMP;

        CenterHead.SetColor(0, Color.white);
        BackgroundSpin.SetActive(true);
        CenterHead.UnfadeObject(0, BackgroundSpin, 1f);

        TEMP = BackgroundSpin.GetComponent <NewObjectSpawner> ();
        TEMP.RotateDegrees(0, 0.1f, 0, false);

        TEMP = LeftEar.GetComponent <NewObjectSpawner> ();
        TEMP.CreateTriangle(0, 0.1f, 9, 0.25f, 0.25f);
        CenterHead.TESTCOMBINE(3, TEMP);

        TEMP = RightEar.GetComponent <NewObjectSpawner> ();
        TEMP.CreateTriangle(0, 0.1f, 9, 0.25f, 0.25f);
        CenterHead.TESTCOMBINE(3, TEMP);

        LeftEye = LeftEyeObject.GetComponent <NewObjectSpawner> ();
        LeftEye.CreateLineInDirection(0, 0, 1, new Vector2(0, 0), 0);
        LeftEye.RotateDegrees(0, 0, 315, true);
//		LeftEye.RotateTwordsObject_Player (0, 5, false);

        RightEye = RightEyeObject.GetComponent <NewObjectSpawner> ();
        RightEye.CreateLineInDirection(0, 0, 1, new Vector2(0, 0), 0);
        RightEye.RotateDegrees(0, 0, 315, true);
//		RightEye.RotateTwordsObject_Player (0, 5, false);

        TEMP = Mouth.GetComponent <NewObjectSpawner> ();
        TEMP.CreateCircle(0, 0.1f, 7, 0.5f, 0.5f, 2);
        TEMP.CreateCircle(0, 0.1f, 5, 0.05f, 0.05f, 1);
        TEMP.CreateLineInDirection_World(0, 0.1f, 2, new Vector2(0, -1), 0.5f);

        CenterHead.TESTCOMBINE(3, TEMP);
        LeftArm.SetColor(0, Color.white);
        RightArm.SetColor(0, Color.white);

        CenterHead.CreateCircle(0, 0.05f, 30, 1, 1, 1);
        LeftArm.CreateSquare(0, 0.1f, 16, 0.5f, 0.4f);
        RightArm.CreateSquare(0, 0.1f, 16, 0.5f, 0.4f);
        LeftArm.SetColor_Random(3);
        RightArm.SetColor_Random(3);

        StartCoroutine(C_StartBattle());
    }
Exemple #4
0
    // Spin and create a circle burst of objects from each paw
    IEnumerator C_SpinnyHands(float StartDelay)
    {
        yield return(new WaitForSeconds(StartDelay));

//		float RNG = Random.Range(0.50f, 0.55f);
        float RNG = 0.50f;

        if (LeftArm.gameObject.activeInHierarchy)
        {
            LeftArm.SetDeathTimer(0, 7);
            LeftArm.RotateDegrees(0, 1, 0, true);
            for (float I = 0; I < 5; I = I + RNG)
            {
                LeftArm.CircleBurst(I, 10, 1);
            }
            LeftArm.StopRotation(6);
            LeftArm.RotateToDegree(6, 1, 0, true);
        }

        if (RightArm.gameObject.activeInHierarchy)
        {
            RightArm.SetDeathTimer(0, 7);
            RightArm.RotateDegrees(0, 1, 0, true);
            for (float I = 0; I < 5; I = I + RNG)
            {
                RightArm.CircleBurst(I, 10, 1);
            }
            RightArm.StopRotation(6);
            RightArm.RotateToDegree(6, 1, 0, true);
        }

        for (float I = 0; I < 5; I = I + 0.51f)
        {
            CenterHead.PlayClip(I, Bullet1);
        }


        yield return(new WaitForSeconds(10));
    }
Exemple #5
0
    // Testing multiple objects doing stuff
    void Action3()
    {
        NewObjectSpawner Object1 = CreateNewObjectSpawner();

        Object1.SetProjectile(0, Projectile1);
        Object1.SetColor(0, Color.blue);

        NewObjectSpawner Object2 = CreateNewObjectSpawner();

        Object2.SetProjectile(0, Projectile1);
        Object2.SetColor(0, Color.red);

        NewObjectSpawner Object3 = CreateNewObjectSpawner();

        Object3.SetProjectile(0, Projectile1);
        Object3.SetColor(0, Color.green);


        Object1.CreateCircle(1, 0.1f, 25, 1, 1, 2f);
        Object2.RotateToDegree(0, null, 0, 180, true);
        Object2.CreateCircle(3.7f, 0.1f, 25, 1, 1, 2f);

        Object1.RotateDegrees(7, null, 2, 180, true);
        Object2.RotateDegrees(7, null, 2, 180, true);

        Object1.LaunchAtTarget(9, UpperLeftCorner, 2);
        Object1.StopMovement(10);
        Object2.LaunchAtTarget(9, UpperRightCorner, 2);
        Object2.StopMovement(10);

        Object1.MorphToSquare(9, 1, 1, 0f, 2.5f);
        Object2.MorphToCircle(9, 1, 1, 0f, 2.5f);

        Object1.ChangeColor_Children(10, Color.red, 1);
        Object2.ChangeColor_Children(10, Color.blue, 1);

        Object1.MorphToCircle(12, 1, 1, 0f, 2);
        Object2.MorphToSquare(12, 1, 1, 0f, 2);

        Object2.MorphToCircle(14, 1, 1, 0f, 2);
        Object1.MoveToPosition(14, CenterOfScreen, 2);
        Object2.MoveToPosition(14, CenterOfScreen, 2);

        Object1.ChangeScale(16, 2, 1, false);

        Object1.RotateDegrees(18, null, 1, 0, true);
        Object2.RotateDegrees(18, null, -1, 0, true);

        Object1.StopRotation(21);
        Object2.StopRotation(21);

        Object3.MoveToPosition(0, BottomLeftCorner, 0);
        Object3.CreateLineToTarget(21, 0.002f, 30, UpperRightCorner);

        Object1.ChangeColor_Children(21, 1);
        Object2.ChangeColor_Children(21, 1);

        Object3.BreakRandomly(22, 0.02f, 4);

        Object1.ChangeScale(24, 0.5f, 3, false);
        Object2.ChangeScale(24, 0.5f, 1, false);

        Object1.RotateDegrees(25, null, 1, 0, true);
        Object2.RotateDegrees(25, null, -1, 0, true);
        Object1.BreakRandomly(26, 0.1f, 2);
        Object2.BreakRandomly(26, 0.1f, 2);
        Object1.ChangeScale(26f, 3f, 1f, false);
        Object2.ChangeScale(26f, 3f, 1f, false);

        Object1.StopColorChangeEffect(28);
        Object2.StopColorChangeEffect(28);

        Object1.SprayInDirection(30, 40, new Vector3(-0.25f, 1), 0.1f, 3);
        Object2.SprayInDirection(30, 40, new Vector3(0.25f, 1), 0.1f, 3);
        Object3.SprayInDirection(30, 80, new Vector3(0.5f, 1f), 0.05f, 7);

        Object1.EnableObject(33, Exit);
        Object1.PlayClip(33, ExitClip);
    }