simple js engine for games in polar coordinates