Example #1
0
 public void Draw(SpriteBatch spriteBatch, Camera camera)
 {
     Color color = new Color(fade, fade, fade, fade);
     float scale = camera.getTextureScale(_smokeTexture.Width, size);
     spriteBatch.Draw(_smokeTexture, camera.getVisualCoords(position, _smokeTexture.Width, _smokeTexture.Height, scale), null,
                         color, rotation, randomDirection, scale, SpriteEffects.None, 0.3f);
 }
Example #2
0
 public void Draw(SpriteBatch spriteBatch, Camera camera)
 {
     float scale = camera.getTextureScale(_splitterTexture.Width, particleSize);
     Color color = new Color(fade, fade, fade, fade);
     spriteBatch.Draw(_splitterTexture,
                     camera.getVisualCoords(position, _splitterTexture.Width, _splitterTexture.Height, scale),
                     null, color, 0, randomDirection, scale, SpriteEffects.None, 0.4f);
 }
Example #3
0
        public void Draw(SpriteBatch spriteBatch, Texture2D _circleAimTexture, Camera _camera)
        {
            float aimScale = _camera.getTextureScale(_circleAimTexture.Width, size);
            mousePosition = _camera.getLogicalCoords(new Vector2(_mouseState.X, _mouseState.Y));

            spriteBatch.Begin(SpriteSortMode.FrontToBack);
            spriteBatch.Draw(_circleAimTexture, _camera.getVisualCoords(mousePosition, _circleAimTexture.Width, _circleAimTexture.Height, aimScale),
                        _circleAimTexture.Bounds, Color.White, 0,
                        new Vector2(aimScale, aimScale),
                        aimScale, SpriteEffects.None, 0.6f);
            spriteBatch.End();
        }