예제 #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (SKraft game = new SKraft())
     {
         game.Run();
     }
 }
예제 #2
0
        private Vector3 targetRemember = new Vector3(); //zapamietuje obrot, aby updetowac mape

        #endregion Fields

        #region Constructors

        public Player(SKraft game, Vector3 position, Map map)
        {
            this.Position = position;
            this.game = game;
            this.map = map;
            fppCamera = new FppCamera(game, new Vector3(position.X, position.Y + 1, position.Z), Vector3.Zero, Vector3.Up);
            Position = new Vector3(Position.X, 0, Position.Z);

            mousePos = new Vector2(Mouse.GetState().X, Mouse.GetState().Y);
            Speed = 0.1f;
            MouseSpeed = 10;

            game.Components.Add(fppCamera);
        }