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

◆ CrimeraSkyEntity()

Terraria.GameContent.Skies.AmbientSky.CrimeraSkyEntity.CrimeraSkyEntity ( Player player,
FastRandom random )
inline

Definition at line 1178 of file AmbientSky.cs.

1179 : base(player, random)
1180 {
1181 int num = 3;
1182 if (Depth <= 6f)
1183 {
1184 num = 2;
1185 }
1186 if (Depth <= 5f)
1187 {
1188 num = 1;
1189 }
1190 Texture = Main.Assets.Request<Texture2D>("Images/Backgrounds/Ambience/Crimera" + num, (AssetRequestMode)1);
1191 Frame = new SpriteFrame(1, 3);
1192 }

References Terraria.Main.Assets, Terraria.GameContent.Skies.AmbientSky.SkyEntity.Depth, and Terraria.GameContent.Skies.AmbientSky.SkyEntity.Frame.