This commit is contained in:
2024-10-26 08:11:30 +02:00
parent 24d09a2e3c
commit bffd2bdace
14 changed files with 32 additions and 156 deletions

View File

@@ -1527,17 +1527,19 @@ void Game::initPaths()
for (int i = 0; i < first_part; ++i)
{
stage_bitmap_path_[i] = (sin[(int)((i * 1.8f) + 90)] * (distance) + center_point);
int index = static_cast<int>((i * 1.8f) + 90) % 360;
stage_bitmap_path_[i] = sin[index] * distance + center_point;
}
for (int i = first_part; i < second_part; ++i)
{
stage_bitmap_path_[i] = (int)center_point;
stage_bitmap_path_[i] = center_point;
}
for (int i = second_part; i < STAGE_COUNTER_; ++i)
{
stage_bitmap_path_[i] = (sin[(int)(((i - 149) * 1.8f) + 90)] * (center_point + 17) - 17);
int index = static_cast<int>(((i - 149) * 1.8f) + 90) % 360;
stage_bitmap_path_[i] = sin[index] * (center_point + 17) - 17;
}
// Letrero de GetReady