Пример #1
0
    public void loadScalingTestLevel()
    {
        Debug.Log("Load Scaling Test Level Called!");

        WeightedListLevelData level = new WeightedListLevelData(10, 15f);
        BaseTargetFactory     scalingTargetFactory = new ScalingTargetFactory(0.25f, 0.5f, 1.25f, 1.5f, 1.0f, 5.0f);

        level.addFactory(scalingTargetFactory);

        GameSettings.instance.loadLevel(level);
    }
Пример #2
0
    public void loadMixedTestLevel()
    {
        Debug.Log("Load Mixed Test Level Called!");

        WeightedListLevelData level = new WeightedListLevelData(10, 15f);
        BaseTargetFactory     movingTargetFactory  = new MovingTargetFactory(0, (float)Math.PI * 2, 0.5f, 1.25f, 0.5f, 5.0f);
        BaseTargetFactory     scalingTargetFactory = new ScalingTargetFactory(0.25f, 0.5f, 1.25f, 1.5f, 1.0f, 5.0f);
        BaseTargetFactory     stillTargetFactory   = new SimpleTargetFactory();

        level.addFactory(movingTargetFactory);
        level.addFactory(stillTargetFactory);
        level.addFactory(scalingTargetFactory);

        GameSettings.instance.loadLevel(level);
    }