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

◆ EOSSkyEntity()

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

Definition at line 1202 of file AmbientSky.cs.

1203 : base(player, random)
1204 {
1205 int num = 3;
1206 if (Depth <= 6f)
1207 {
1208 num = 2;
1209 }
1210 if (Depth <= 5f)
1211 {
1212 num = 1;
1213 }
1214 Texture = Main.Assets.Request<Texture2D>("Images/Backgrounds/Ambience/EOS" + num, (AssetRequestMode)1);
1215 Frame = new SpriteFrame(1, 4);
1216 }

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