This commit is contained in:
Philipp Horstenkamp 2022-04-09 17:32:30 +02:00
commit 33709879de
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4
1 changed files with 8 additions and 0 deletions

8
main.mjs Normal file
View File

@ -0,0 +1,8 @@
import { getObjectsByPrototype } from '/game/utils';
import { Creep, Flag } from '/game/prototypes';
export function loop() {
var creeps = getObjectsByPrototype(Creep);
var flags = getObjectsByPrototype(Flag);
creeps[0].moveTo(flags[0]);
}