commit 33709879de27dcb0c589883a8b16a7ff6ececd12 Author: Philipp Horstenkamp Date: Sat Apr 9 17:32:30 2022 +0200 init diff --git a/main.mjs b/main.mjs new file mode 100644 index 0000000..1006e23 --- /dev/null +++ b/main.mjs @@ -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]); +} \ No newline at end of file