|
|
|
@ -9,11 +9,12 @@ Beatmap ClassicMapCreator::createBeatmap(const std::string& filepath) const
|
|
|
|
|
{
|
|
|
|
|
(void) filepath;
|
|
|
|
|
|
|
|
|
|
microsec starting_beat_offset = 352162;
|
|
|
|
|
microsec starting_beat_offset = 362162;
|
|
|
|
|
int amount_of_beats = 209;
|
|
|
|
|
microsec interval = 1412162;
|
|
|
|
|
microsec tempo_interval = interval / 4;
|
|
|
|
|
microsec note_input_offset = 412162 / 3;
|
|
|
|
|
microsec tempo_interval = interval / 2;
|
|
|
|
|
microsec note_input_offset = 412162 / 2;
|
|
|
|
|
microsec note_input_offset_fast = 412162 / 6;
|
|
|
|
|
microsec bpm_iterator = starting_beat_offset;
|
|
|
|
|
microsec bpm_end = starting_beat_offset + (interval * amount_of_beats);
|
|
|
|
|
|
|
|
|
@ -30,7 +31,7 @@ Beatmap ClassicMapCreator::createBeatmap(const std::string& filepath) const
|
|
|
|
|
while (bpm_iterator < bpm_end)
|
|
|
|
|
{
|
|
|
|
|
ClassicNote::ClassicNoteInitializer init;
|
|
|
|
|
ClassicNote::ClassicNoteInitializer::Element element, element2;
|
|
|
|
|
ClassicNote::ClassicNoteInitializer::Element element;
|
|
|
|
|
init.intervals = input_intervals;
|
|
|
|
|
init.perfect_offset = bpm_iterator;
|
|
|
|
|
|
|
|
|
@ -39,22 +40,29 @@ Beatmap ClassicMapCreator::createBeatmap(const std::string& filepath) const
|
|
|
|
|
element.keys = {sf::Keyboard::W, sf::Keyboard::Up};
|
|
|
|
|
element.type = Type::UP;
|
|
|
|
|
|
|
|
|
|
init.elements = {element};
|
|
|
|
|
|
|
|
|
|
notes.emplace_back(new ClassicNote(std::move(init), _graphics_manager));
|
|
|
|
|
|
|
|
|
|
if (counter == 0)
|
|
|
|
|
{
|
|
|
|
|
counter = 3;
|
|
|
|
|
element2.coordinates = {x, 300.};
|
|
|
|
|
ClassicNote::ClassicNoteInitializer init2;
|
|
|
|
|
ClassicNote::ClassicNoteInitializer::Element element2;
|
|
|
|
|
init2.intervals = input_intervals;
|
|
|
|
|
init2.perfect_offset = bpm_iterator + note_input_offset_fast;
|
|
|
|
|
|
|
|
|
|
element2.coordinates = {x + 35, 390. + 50.};
|
|
|
|
|
element2.falling_curve_interpolation = {};
|
|
|
|
|
element2.keys = {sf::Keyboard::A, sf::Keyboard::Left};
|
|
|
|
|
element2.type = Type::LEFT;
|
|
|
|
|
element2.keys = {sf::Keyboard::D, sf::Keyboard::Right};
|
|
|
|
|
element2.type = Type::RIGHT;
|
|
|
|
|
|
|
|
|
|
init.elements = {element, element2};
|
|
|
|
|
init2.elements = {element2};
|
|
|
|
|
notes.emplace_back(new ClassicNote(std::move(init2), _graphics_manager));
|
|
|
|
|
counter = 3;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
init.elements = {element};
|
|
|
|
|
|
|
|
|
|
--counter;
|
|
|
|
|
|
|
|
|
|
notes.emplace_back(new ClassicNote(std::move(init), _graphics_manager));
|
|
|
|
|
bpm_iterator += tempo_interval;
|
|
|
|
|
x += 70;
|
|
|
|
|
|
|
|
|
|