KaboomJS: How to get the angle of the mouse in relation to a player/object.
I've been building a top-down shooter in Kaboom and had to figure out how to shoot bullets from the main player, here is a quick function to calculate the angle of the mouse in degrees in relation to a player.
const player = add([
sprite("lenn...
blog.jordienric.com1 min read