Example #1
0
    void    Start()
    {
        this.step.set_next(STEP.GAME);

        this.controlable = new bool[4];

        for (int i = 0; i < 4; i++)
        {
            this.controlable[i] = true;
        }

        //

        this.debug_flag.play_bgm = false;

        dbwin.root();

        if (dbwin.root().getWindow("game") == null)
        {
            this.create_debug_window();
        }
        if (dbwin.root().getWindow("player") == null)
        {
            this.create_debug_window_player();
        }
        #if false
        PseudoRandom.Plant plant = PseudoRandom.get().createPlant("test0");
        plant = PseudoRandom.get().createPlant("test1");

        for (int i = 0; i < 16; i++)
        {
            Debug.Log(plant.getRandom().ToString());
        }
        #endif
    }
Example #2
0
    void    Start()
    {
        this.item_lot.ice_atari = new Lottery(1.0f / 3.0f);

        this.rand = PseudoRandom.get().createPlant("level:item", 40);
    }