コード例 #1
0
        /*
         * /// <summary>
         * /// Required if the Resource is on a platform, the Platform is taking care of the Resources not colliding.
         * /// </summary>
         * /// <param name="direction"></param>
         * public void Move(Vector2 direction)
         * {
         *  mVelocity += Geometry.NormalizeVector(direction) * Speed;
         * } // */

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.DrawCircle(AbsolutePosition, 6, 20, ResourceHelper.GetColor(Type), 6, LayerConstants.ResourceLayer);
            spriteBatch.DrawCircle(AbsolutePosition, 7, 20, Color.Black, 1, LayerConstants.ResourceLayer);
        }