Visuel notes
This commit is contained in:
parent
e2fb0d911a
commit
05f8b11dec
14 changed files with 137 additions and 50 deletions
17
SimpleGame/src/Source/TilePattern.cpp
Normal file
17
SimpleGame/src/Source/TilePattern.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#include "TilePattern.hpp"
|
||||
#include "AudioEmitter.hpp"
|
||||
#include "NoteSprite.hpp"
|
||||
#include "NoteTile.hpp"
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
void generateTilePattern(std::vector<std::pair<float, int>> new_notes,
|
||||
const AudioEmitter &audio_emitter) {
|
||||
int i = 0;
|
||||
for (auto note : new_notes) {
|
||||
float start_time = note.first;
|
||||
NotePlaceEnum notePlace = static_cast<NotePlaceEnum>(i % 3);
|
||||
NoteTile::create(start_time, 1.0, notePlace, audio_emitter.getTime());
|
||||
i++;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue