protected AbstractScoresScene(SceneManager sceneMgr, string menuTitle)
            : base(sceneMgr)
        {
            _menuTitle = menuTitle;

            TransitionOnTime = TimeSpan.FromSeconds(0.5);
            TransitionOffTime = TimeSpan.FromSeconds(0.5);

            // Prise en charge de Kinect
            ki = new KinectInput();
            ki.playerMove += move;
            ki.playerFire += handSelect;
        }
Esempio n. 2
0
        public MainPlayer(Vector2 size_window, RTGame rtgame)
            : base(size_window)
        {
            this.rtgame = rtgame;
            health = 5;
            shield = 3;
            maxShield = 3;
            maxHealth = 5;
            coefDep = 5f;
            size = new Vector2(256, 105);
            nbrSprite = 3;
            this.listBonus = new List<ApplyBonus>();

            // Prise en charge de Kinect
            ki = new KinectInput();
            ki.playerMove += move;
            ki.playerFire += handSelect;
            feuKinect = 0;
        }