Skip to content

Commit

Permalink
ugh
Browse files Browse the repository at this point in the history
  • Loading branch information
weluvgoatz committed Jun 14, 2024
1 parent 6704974 commit cb03b87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/object/bigsnowball.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ BigSnowball::spawn_particles()
for (int i = 0; i < 8; i++)
{
Sector::get().add<SpriteParticle>(m_sprite_name, "particle",
get_bbox().get_middle() + (15.f * Vector(std::cos(math::PI_4*i), std::sin(math::PI_4*i))),
ANCHOR_MIDDLE, (150.f * (glm::normalize(Vector(std::cos(math::PI_4*i), std::sin(math::PI_4*i))))) +
get_bbox().get_middle() + (15.f * Vector(std::cos(math::PI_4*static_cast<float>(i)), std::sin(math::PI_4*static_cast<float>(i)))),
ANCHOR_MIDDLE, (150.f * (glm::normalize(Vector(std::cos(math::PI_4*static_cast<float>(i)), std::sin(math::PI_4*static_cast<float>(i)))))) +
Vector(gameRandom.randf(-40.f, 40.f), gameRandom.randf(-40.f, 40.f)),
Vector(0.f, 1000.f), LAYER_OBJECTS + 1, true);
}
Expand Down

0 comments on commit cb03b87

Please sign in to comment.