Esempio n. 1
0
File: Player.cs Progetto: hantor/EOD
        public Player(Game game)
            : base(game)
        {
            _iDrawManagerService = (IDrawManagerService)game.Services.GetService(typeof(IDrawManagerService));
            _iKeyboardManagerService = (IKeyboardManagerService)game.Services.GetService(typeof(IKeyboardManagerService));

            SetTexture(_iDrawManagerService.SquareWhite);
            SetLayerDepth(0.4f);

            SetPositionX(600.0f);
            SetPositionY(300.0f);
        }
Esempio n. 2
0
File: Player.cs Progetto: hantor/EOD
        public Player(Game game)
            : base(game)
        {
            _iDrawManagerService     = (IDrawManagerService)game.Services.GetService(typeof(IDrawManagerService));
            _iKeyboardManagerService = (IKeyboardManagerService)game.Services.GetService(typeof(IKeyboardManagerService));

            SetTexture(_iDrawManagerService.SquareWhite);
            SetLayerDepth(0.4f);

            SetPositionX(600.0f);
            SetPositionY(300.0f);
        }