Polyphonic Sampler Devlog 2
I basically just optimized piano-key code
- When I first made this project, I made 2 scripts for each key (24) for a total of 48 scripts with the only difference between all of them being the value of two numbers
- I made an array to condense the code into 2 scripts that all the keys would share. Each key was renamed to 1, 2, 3, etc. and the code would choose one value from the array based on the name of the sprite/key.
- 1410 lines of code removed </3
I also removed the WakaTime README and like 2 unused scripts
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.