more refactoring and breaking things

This commit is contained in:
Sebastian
2026-01-06 02:44:18 +01:00
parent f086834da6
commit 77a227f40d
25 changed files with 2416 additions and 2304 deletions
+25
View File
@@ -0,0 +1,25 @@
#include "signal.h"
#include <raylib.h>
#include "node.h"
namespace VISEQ::SIGNAL {
void Signal::reset(){
toStart();
}
void Signal::toStart(){
position = start.lock()->position;
}
void Signal::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 Signal::draw(Vec2Df mouse, Camera2D cam) {
DrawCircle(position.x, position.y, radius, color);
}
}