From 33709879de27dcb0c589883a8b16a7ff6ececd12 Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Sat, 9 Apr 2022 17:32:30 +0200 Subject: [PATCH] init --- main.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 main.mjs 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