working game (but bad)
This commit is contained in:
parent
dbb296ff5d
commit
5c65b99604
6 changed files with 89 additions and 12 deletions
|
@ -7,11 +7,13 @@
|
|||
|
||||
void generateTilePattern(std::vector<std::pair<float, int>> new_notes,
|
||||
const AudioEmitter &audio_emitter) {
|
||||
int i = 0;
|
||||
int i = -1;
|
||||
for (auto note : new_notes) {
|
||||
i++;
|
||||
if (i % 4 != 0) // skip les 3/4 des notes (je suis trop nul sinon)
|
||||
continue;
|
||||
float start_time = note.first;
|
||||
NotePlaceEnum notePlace = static_cast<NotePlaceEnum>(i % 3);
|
||||
NoteTile::create(start_time, 1.0, notePlace, audio_emitter.getTime());
|
||||
i++;
|
||||
NoteTile::create(start_time, 0.5, notePlace, audio_emitter.getTime());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue