Пример #1
0
        public PausePlayer(Simulator simulator)
        {
            Simulator = simulator;

            SpaceshipMove = new SpaceshipSpaceship(simulator)
            {
                Speed = 4,
                VisualPriority = VisualPriorities.Default.PlayerPanelCursor
            };

            Circle = new Circle(Vector3.Zero, 8);
        }
Пример #2
0
        public SimPlayer(Simulator simulator, Player player)
        {
            Simulator = simulator;
            BasePlayer = player;
            PowerUpInUse = PowerUpType.None;

            SpaceshipMove = new SpaceshipSpaceship(simulator)
            {
                Speed = 4,
                VisualPriority = VisualPriorities.Default.PlayerCursor
            };

            SpaceshipMove.Bounced += new NoneHandler(DoBouncing);

            TurretToPlaceChanged = false;
            GameOver = false;
            VibrationMetronome = new Metronome(Preferences.TargetElapsedTimeMs, 100);
        }