Пример #1
0
    public static MainMenuTouchEventHandler Create(MainMenu l)
    {
        MainMenuTouchEventHandler h = new MainMenuTouchEventHandler();

        h.l = l;
        return(h);
    }
Пример #2
0
    public void Start(GamePlatform p_)
    {
        this.p = p_;

        //Initialize translations
        lang          = new LanguageCi();
        lang.platform = p;
        lang.LoadTranslations();
        p.SetTitle(lang.GameName());

        textColorRenderer          = new TextColorRenderer();
        textColorRenderer.platform = p_;
        p_.LoadAssetsAsyc(assets, assetsLoadProgress);

        overlap  = 200;
        minspeed = 20;
        rnd      = p.RandomCreate();

        xRot   = 0;
        xInv   = false;
        xSpeed = minspeed + rnd.MaxNext(5);

        yRot   = 0;
        yInv   = false;
        ySpeed = minspeed + rnd.MaxNext(5);

        z = -5;

        filter = 0;

        mvMatrix = Mat4.Create();
        pMatrix  = Mat4.Create();

        currentlyPressedKeys = new bool[256];
        p.AddOnNewFrame(MainMenuNewFrameHandler.Create(this));
        p.AddOnKeyEvent(MainMenuKeyEventHandler.Create(this));
        p.AddOnMouseEvent(MainMenuMouseEventHandler.Create(this));
        p.AddOnTouchEvent(MainMenuTouchEventHandler.Create(this));
    }
Пример #3
0
 public static MainMenuTouchEventHandler Create(MainMenu l)
 {
     MainMenuTouchEventHandler h = new MainMenuTouchEventHandler();
     h.l = l;
     return h;
 }