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

◆ LightDisc_Bounce()

void Terraria.Projectile.LightDisc_Bounce ( Vector2 hitPoint,
Vector2 normal )
inlineprivate

Definition at line 16954 of file Projectile.cs.

16955 {
16957 for (int i = 0; i < 4; i++)
16958 {
16959 Dust dust = Dust.NewDustPerfect(hitPoint, 306, spinningpoint.RotatedBy((float)Math.PI / 4f * Main.rand.NextFloatDirection()) * 0.6f * Main.rand.NextFloat(), 200, default(Color), 1.6f);
16960 dust.color = Color.Lerp(new Color(219, 253, 0), Color.Cyan, Main.rand.NextFloat());
16961 Dust dust2 = Dust.CloneDust(dust);
16962 dust2.color = Color.White;
16963 dust2.scale = 1f;
16964 dust2.alpha = 50;
16965 }
16966 }
const double PI
Definition Math.cs:16
Vector2 velocity
Definition Entity.cs:16
static Color Lerp(Color value1, Color value2, float amount)
Definition Color.cs:491
static Vector2 Reflect(Vector2 vector, Vector2 normal)
Definition Vector2.cs:157

References Terraria.Dust.CloneDust(), Microsoft.Xna.Framework.Color.Cyan, Microsoft.Xna.Framework.Color.Lerp(), Terraria.Dust.NewDustPerfect(), System.Math.PI, Terraria.Main.rand, Microsoft.Xna.Framework.Vector2.Reflect(), Terraria.Entity.velocity, and Microsoft.Xna.Framework.Color.White.

Referenced by Terraria.Projectile.Damage(), and Terraria.Projectile.HandleMovement().