Пример #1
0
 /// <summary>
 /// Instantiates the cursor.
 /// Sets the cursor's layer.
 /// Offsets the cursor to be centered on it's position.
 /// </summary>
 private void CreateCursor()
 {
     _cursor = new Sprite(Content.Load<Texture2D>("cursor"), Vector2.Zero);
         _cursor.Layer = 1.0f;
         _cursor.SetOffset(Anchor.Center);
         Drawables.Add(_cursor);
 }