Example #1
0
 public static void AddPlayer(Player p)
 {
     Players.Add(p);
     Objects.Add(p);
     p.AddToPanel(RootPanel);
 }
Example #2
0
        void Init()
        {
            Game.RootPanel = LayoutRoot;
            Game.AddPlayer(mPlayer = new Player()
            {
                Name = Environment.UserName
            });
            Game.AddBall(mBall = new Ball());

            mCursorTracker.IsEnabled = true;
        }