I get to what I think be the first boss and this happens.
Error
globals.lua:49: attempt to index local 'a' (a nil value)
Traceback
globals.lua:49: in function 'getAngle'
enemies.lua:754: in function 'arrows'
enemies.lua:789: in function 'spawnArrows'
enemies.lua:793: in function <enemies.lua:705>
enemies.lua:1082: in function 'updateFunc'
stage.lua:89: in function 'updateEnemy'
stage.lua:186: in function 'update'
main.lua:55: in function 'update'
[C]: in function 'xpcall'