summaryrefslogtreecommitdiff
path: root/GameCode/MusicGridVisualizer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'GameCode/MusicGridVisualizer.cs')
-rw-r--r--GameCode/MusicGridVisualizer.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/GameCode/MusicGridVisualizer.cs b/GameCode/MusicGridVisualizer.cs
new file mode 100644
index 0000000..c7fc064
--- /dev/null
+++ b/GameCode/MusicGridVisualizer.cs
@@ -0,0 +1,13 @@
+public class MusicGridVisualizer : GridVisualizer
+{
+ private void Update()
+ {
+ for (int i = 0; i < numberOfObjects.x; i++)
+ {
+ for (int j = 0; j < numberOfObjects.y; j++)
+ {
+ spawnedObjects[i, j].OnSetSize(MusicVisualizerData.Samples[i + j] * 200f);
+ }
+ }
+ }
+}