A bit late, but is it okay to use libraries? I know it's technically not my code, but I'm using Love2D which is pretty bare-bones.
You're free to use a library, go ahead.