Esempio n. 1
1
        public MapDrawer(GameXXX game)
        {
            this.game = game;
            this.baseCanvas = CreateBaseCanvas();
            this.game.Root.Children.Add(baseCanvas);

            this.emptyBrush = new SolidColorBrush(emptyColor);
            this.strokeBrush = new SolidColorBrush(strokeColor);
        }
Esempio n. 2
0
        public Graphic(GameXXX game)
        {
            this.game = game;

            this.canvasImage = new Image();
            game.Root.Children.Add(canvasImage);
        }
Esempio n. 3
0
        public Map(GameXXX game)
        {
            this.game = game;
            this.random = game.SyncRandom;

            gridDatas = new int[RowNum][];
            for (int i = 0; i < gridDatas.Length; i++)
            {
                gridDatas[i] = new int[ColumnNum];
            }
        }
Esempio n. 4
0
 public LoadingScene(GameXXX game)
 {
     this.game = game;
     this.loandingText = new TextBlock();
     this.loandingText.Inlines.Add("Now Loading...");
     this.loandingText.FontSize = 40;
     this.loandingText.TextAlignment = TextAlignment.Center;
     var x = game.CenterX - loandingText.ActualWidth / 2;
     var y = game.CenterY - loandingText.ActualHeight / 2;
     this.loandingText.SetValue(Canvas.LeftProperty, x);
     this.loandingText.SetValue(Canvas.TopProperty, y);
 }
Esempio n. 5
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            var mainPage = new MainPage();
            this.RootVisual = mainPage;

            var logTextBlock = new TextBlock();
            mainPage.LayoutRoot.Children.Add(logTextBlock);
            MyLog.LogTextBlock = logTextBlock;
            MyLog.LogTextBlock.IsHitTestVisible = false;
            MyLog.LogTextBlock.SetValue(Canvas.ZIndexProperty, 100);
            MyLog.OutputLevel = 10;

            this.gameXXX = new GameXXX(mainPage.LayoutRoot);
            this.gameXXX.Initialize();
        }
 public NetworkController(GameXXX game, NetworkManager network)
 {
     this.game = game;
     this.network = network;
 }
Esempio n. 7
0
 public GameScene(GameXXX game)
 {
     this.game = game;
     this.mapClickController = new MapClickController();
 }
Esempio n. 8
0
 public TitleScene(GameXXX game)
 {
     this.game = game;
     this.graphic = game.Graphic;
 }