more refactoring and breaking things
This commit is contained in:
+4
-18
@@ -35,24 +35,10 @@ namespace VISEQ::SIGNAL {
|
||||
int midi_note_offset = 0;
|
||||
int midi_cc_offset = 0;
|
||||
|
||||
void reset(){
|
||||
toStart();
|
||||
}
|
||||
|
||||
void toStart(){
|
||||
position = start.lock()->position;
|
||||
}
|
||||
|
||||
void update(double t_delta){
|
||||
// 120px / 16th = 1920px / whole note
|
||||
// whole note = 2s at 120bpm
|
||||
// 960px / s
|
||||
if(run) position += direction.norm() * speed * multiplier * (float)t_delta / 1000000.0f;
|
||||
}
|
||||
|
||||
void draw(Vec2Df mouse, Camera2D cam) {
|
||||
DrawCircle(position.x, position.y, radius, color);
|
||||
}
|
||||
void reset();
|
||||
void toStart();
|
||||
void update(double t_delta);
|
||||
void draw(Vec2Df mouse, Camera2D cam) ;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user