/// <summary>
        /// Creates a new hud
        /// </summary>
        /// <param name="layer"></param>
        public SpritesetHud(SceneLayer layer, PointsController controller, InputControllerState source, Int32 width, Int32 height)
            : base(layer)
        {
            _source = source;
            _controller = controller;

            _cursorStandard = new Sprite(layer, "Graphics/Pointer-Standard");
            _cursorDelete = new Sprite(layer, "Graphics/Pointer-Delete");
           
            _placingBlock = new DataBlock(source.GridPosition, source.Type == BlockType.None ? BlockType.Normal : source.Type, null);
            _placingSprite = new SpriteBlock(layer, _placingBlock);

            _spriteLogo = new Sprite(layer, "Graphics/Logo") { Position = Vector2.UnitY * 40 + Vector2.UnitX * 50 };

            if (width > 1000)
            {
                _spriteHappyPoints = new Sprite(layer, "Graphics/Icon-HappyPoints") { Position = Vector2.UnitY * 40 + Vector2.UnitX * 520 * (width / 1280f) };
                _spriteTime = new Sprite(layer, "Graphics/Icon-Time") { Position = Vector2.UnitY * 40 + Vector2.UnitX * 1130 * (width / 1280f) };
            }
            else
            {
                _spriteTime = new Sprite(layer, "Graphics/Icon-Time") { Position = Vector2.UnitY * 40 + Vector2.UnitX * (width - (1280 - 1130)) };
                _spriteHappyPoints = new Sprite(layer, "Graphics/Icon-HappyPoints") { Position = Vector2.UnitY * 90 + Vector2.UnitX * 50 };
            }
        }
        /// <summary>
        /// Initializes input controller
        /// </summary>
        public override void Initialize()
        {
            base.Initialize();

            _inputManager = this.Game.Services.GetService(typeof(InputManager)) as InputManager;
            if (_inputManager == null)
                throw new InvalidOperationException("Inputmanager nog found");

            _state = new InputControllerState(_inputManager);
            _timeController = this.Game.Services.GetService(typeof(TimeController)) as TimeController;
        }