simple signal config added. bpm config and grid.

This commit is contained in:
Sebastian
2024-10-22 03:07:11 +02:00
parent ad745a720e
commit 0914747d14
3 changed files with 43 additions and 13 deletions
+4 -2
View File
@@ -32,12 +32,14 @@ class SignalManager{
}
void addSignalAtNode(Node *node){
signals.emplace(signals.end(), Signal(node->position.x+1, node->position.y+1, 5.0f, app->speed)); // position + 1 or else it does not render. why? no idea!
Color c = {(unsigned char)(232 - (rand() % 120)), (unsigned char)(125 + (int)(rand() % 120)), 62, 255};
signals.emplace(signals.end(), Signal(node->position.x+1, node->position.y+1, 5.0f, app->speed, c)); // position + 1 or else it does not render. why? no idea!
signals.back().next = node;
signals.back().last = node;
}
void removeSignal(Signal *signal){
void removeSignal(int n){
signals.erase(signals.begin() + n);
}
void updateSignals(){