示例#1
0
        public BoardManager(GameplayScreen game)
            : base(game.ScreenManager.Game)
        {
            this.uiConnector = UIConnector.Instance;
            this.game = game;
            this.DrawOrder = 1000000;
            game.ScreenManager.Game.Components.Add(new Letters(game, this));

            world = Matrix.CreateScale(0.4f) * Matrix.Identity * Matrix.CreateTranslation(0f, 1.5f, 11f);
            worldRed = Matrix.CreateScale(0.3f) * Matrix.Identity * Matrix.CreateTranslation(0f, 2.5f, 13f);
            worldBlue = Matrix.CreateScale(0.5f) * Matrix.Identity * Matrix.CreateTranslation(1f, 2.5f, 9f);
            worldWhite = Matrix.CreateScale(0.2f)*Matrix.Identity*Matrix.CreateTranslation(1f, 1.7f, 13f);
            view = Matrix.CreateLookAt(new Vector3(1, 3, 17), new Vector3(0, 0, 0), Vector3.Up);
            projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.ToRadians(45), 1.3f, 0.1f, 10000.0f);
        }
示例#2
0
 public FunctionCalculation(UIConnector uiConnector)
 {
     connector = uiConnector;
 }