simple signal config added. bpm config and grid.
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user