Ejemplo n.º 1
0
        /// <summary>
        /// Game started is called *once* when an instance
        /// of your game is started. It's a good place to initialize
        /// your game.
        /// </summary>
        public override void GameStarted()
        {
            Virtual = new FlashTowerDefense.Shared.VirtualGame
            {
                AtDelay    = (h, i) => this.ScheduleCallback(() => h(), i).Stop,
                AtInterval = (h, i) => this.AddTimer(() => h(), i).Stop,
            };

            // You can explicitly setup how many users are allowed in your game.
            MaxUsers = 8;

            Virtual.GameStarted();
        }
Ejemplo n.º 2
0
 public override void GameClosed()
 {
     Virtual.GameClosed();
     Virtual = null;
 }