summaryrefslogtreecommitdiffhomepage
path: root/SpiralGenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SpiralGenerator.cpp')
-rw-r--r--SpiralGenerator.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/SpiralGenerator.cpp b/SpiralGenerator.cpp
index ea3268f..5c39dfb 100644
--- a/SpiralGenerator.cpp
+++ b/SpiralGenerator.cpp
@@ -13,14 +13,12 @@ SpiralGenerator::SpiralGenerator(std::shared_ptr<Vector2> position, SpiralBullet
m_position {position},
m_bullets {bullets},
m_delay {0},
- m_interval {0.08f},
- m_cone {0.4f},
+ m_interval {0.80f},
m_angle {1.0f},
- m_redirect {0.1f},
- float timer {0f},
- float redirect_time {1f},
- float redirect_decrease {0.2f},
- m_direction {-1.f},
+ m_redirect {0.125f},
+ m_timer {0.0f},
+ m_redirect_time {0.05f},
+ m_redirect_decrease {0.99f},
m_speed {80},
m_shift {10},
m_segments {1},
@@ -43,8 +41,8 @@ SpiralGenerator::update(const float dt)
bullet.color = m_color;
bullet.radius = 3;
bullet.velocity = m_speed;
- bullet.position.x = m_position->x + cos * m_shift;
- bullet.position.y = m_position->y + sin * m_shift;
+ bullet.position.x = m_position->x;
+ bullet.position.y = m_position->y;
bullet.angle = m_angle;
bullet.redirect = m_redirect;
bullet.timer = m_timer;