Пример #1
0
        public override void Update(TimeSpan deltaTime)
        {
            var mv = new MoveData();

            Gamemode.SetupMove(Player, ref mv);
            Gamemode.Move(Player, mv, deltaTime);

            var Pos = Player.GetComponent <Tiler.ECS.Components.PhysicsBody>().Value.Position;

            GameView.Center = new Vector2f(Pos.X, Pos.Y);
        }