KaboomJS: How to get the angle of the mouse in relation to a player/object.
Oct 6, 2022 · 1 min read · 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...
Join discussion

