Browse Source

init

master
Philipp Horstenkamp 4 months ago
commit
33709879de
Signed by: philipp
GPG Key ID: DD53EAC36AFB61B4
  1. 8
      main.mjs

8
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]);
}
Loading…
Cancel
Save