relocation

This commit is contained in:
biglyderv 2024-09-29 03:57:50 -04:00
parent 88d395c0e5
commit 4859558479
No known key found for this signature in database
GPG key ID: 33AC87E9ACE66954

View file

@ -1,3 +1,7 @@
if (!crypto) {
crypto = import('node:crypto');
}
function distF(ent, target) {
return ((ent.pos.x - target.pos.x) ** 2) + ((ent.pos.y - target.pos.y) ** 2)
}