Exemple #1
0
        public void AddPlayers()
        {
            if (!playerAdded)
            {
                upPlayer    = new Player(Player.Position.UP, Color.Black, 0, rocketSpeedDefault, width / 2, 0, rocketHeightDefault, rocketWidthDefault);
                upPlayer.Id = controller.AddPlayerRedrawing(upPlayer);

                downPlayer    = new Player(Player.Position.DOWN, Color.Red, 0, rocketSpeedDefault, width / 2, 0, rocketHeightDefault, rocketWidthDefault);
                downPlayer.Id = controller.AddPlayerRedrawing(downPlayer);
                playerAdded   = true;
            }
        }