simple signal config added. bpm config and grid.
This commit is contained in:
+4
-2
@@ -10,7 +10,7 @@ class Signal : public Movable{
|
||||
public:
|
||||
|
||||
Signal();
|
||||
Signal(float x, float y, float r, float s) : Movable(Vec2D<float>(x, y), Vec2D<float>(0,0), s), radius(r) {}
|
||||
Signal(float x, float y, float r, float s, Color color) : Movable(Vec2D<float>(x, y), Vec2D<float>(0,0), s), radius(r), color(color) {}
|
||||
|
||||
int id = 0;
|
||||
|
||||
@@ -23,6 +23,8 @@ class Signal : public Movable{
|
||||
|
||||
float radius;
|
||||
|
||||
Color color;
|
||||
|
||||
void update(int fps){
|
||||
|
||||
}
|
||||
@@ -31,7 +33,7 @@ class Signal : public Movable{
|
||||
|
||||
position += direction.norm() * speed;
|
||||
|
||||
DrawCircle(position.x, position.y, radius, (Color){232, 125, 62, 255});
|
||||
DrawCircle(position.x, position.y, radius, color);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user