Definition at line 59868 of file Main.cs.
59869 {
59871 {
59872 return;
59873 }
59877 int num3 = (int)((
float)(255 - bgColorForStars.R - 100) *
theStar.twinkle *
num2);
59878 int num4 = (int)((
float)(255 - bgColorForStars.G - 100) *
theStar.twinkle *
num2);
59879 int num5 = (int)((
float)(255 - bgColorForStars.B - 100) *
theStar.twinkle *
num2);
59882 {
59883 return;
59884 }
59887 {
59889 }
59892 color.R = (byte)
num3;
59893 color.G = (byte)
num4;
59894 color.B = (byte)
num5;
59896 if (num > 0f)
59897 {
59900 {
59901 value.G = (byte)((
float)(int)color.
G * (1f - num * 0f) * theStar.twinkle *
theStar.twinkle);
59902 }
59903 else if (
i % 3 == 1)
59904 {
59905 value.B = (byte)((
float)(int)color.
B * (1f - num * 0f) * theStar.twinkle *
theStar.twinkle);
59906 }
59907 else if (
i % 3 == 2)
59908 {
59909 value.R = (byte)((
float)(int)color.
R * (1f - num * 0f) * theStar.twinkle *
theStar.twinkle);
59910 }
59913 {
59914 color *= num;
59915 }
59916 else
59917 {
59918 color *= 1f - num;
59919 }
59920 }
59923 {
59925 {
59927 }
59929 {
59931 }
59933 {
59935 }
59937 {
59939 }
59940 }
59942 {
59949 color *= 1f -
num7;
59950 }
59954 {
59955 theStar.fadeIn = 0f;
59959 {
59961 }
59962 for (
int j = 1;
j <
num8;
j++)
59963 {
59965 float num10 = theStar.scale * (1f - (float)
j * 1f /
num9);
59970 }
59972 {
59975 theStar.fallSpeed.Normalize();
59976 theStar.fallSpeed *= 10f;
59977 if (
theStar.fallSpeed.Y > 0f)
59978 {
59979 theStar.fallSpeed.Y *= -1f;
59980 }
59983 }
59984 }
59986 }
static byte Max(byte val1, byte val2)
static void PlaySound(int type, Vector2 position, int style=1)
static Asset< Texture2D >[] Star
static SpriteBatch spriteBatch
static Vector2 screenPosition
static Microsoft.Xna.Framework.Point ScreenSize
static float shimmerAlpha
static float ForcedMinimumZoom
static Color Lerp(Color value1, Color value2, float amount)
static float Distance(Vector2 value1, Vector2 value2)
References Microsoft.Xna.Framework.Color.B, Microsoft.Xna.Framework.Vector2.Distance(), Terraria.Main.ForcedMinimumZoom, Microsoft.Xna.Framework.Color.G, Terraria.Lighting.GetColor(), System.Text.RegularExpressions.i, Microsoft.Xna.Framework.Color.Lerp(), System.Math.Max(), Terraria.Main.mouseX, Terraria.Main.mouseY, Terraria.Audio.SoundEngine.PlaySound(), Microsoft.Xna.Framework.Color.R, Terraria.Utils.Remap(), Terraria.Main.screenHeight, Terraria.Main.screenPosition, Terraria.Main.ScreenSize, Terraria.Main.screenWidth, Terraria.Main.shimmerAlpha, Terraria.Main.spriteBatch, Terraria.GameContent.TextureAssets.Star, Terraria.Main.starGame, Terraria.Main.starsHit, System.value, and Microsoft.Xna.Framework.Graphics.Vector2.
Referenced by Terraria.Main.DrawStarsInBackground().