Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DoUpdate_AnimateTileGlows()

static void Terraria.Main.DoUpdate_AnimateTileGlows ( )
inlinestaticprivate

Definition at line 16940 of file Main.cs.

16941 {
16942 demonTorch += (float)demonTorchDir * 0.01f;
16943 if (demonTorch > 1f)
16944 {
16945 demonTorch = 1f;
16946 demonTorchDir = -1;
16947 }
16948 if (demonTorch < 0f)
16949 {
16950 demonTorch = 0f;
16951 demonTorchDir = 1;
16952 }
16953 martianLight += (float)martianLightDir * 0.015f;
16954 if (martianLight > 1f)
16955 {
16956 martianLight = 1f;
16957 martianLightDir = -1;
16958 }
16959 if (martianLight < 0f)
16960 {
16961 martianLight = 0f;
16962 martianLightDir = 1;
16963 }
16964 }
static int demonTorchDir
Definition Main.cs:1332
static float demonTorch
Definition Main.cs:1330
static int martianLightDir
Definition Main.cs:1336
static float martianLight
Definition Main.cs:1334

References Terraria.Main.demonTorch, Terraria.Main.demonTorchDir, Terraria.Main.martianLight, and Terraria.Main.martianLightDir.

Referenced by Terraria.Main.DoUpdate().