rymdkraftverk / level1

Game utility: Trigger a function after a set amount of game updates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redo API

sajmoni opened this issue · comments

Would be nice with a repeat that would run a predetermined amount of updates. There could be two ways to do this:
1.

l1.repeat => Rename this to l1.forever. Keep API otherwise.
New l1.repeat => Runs on every update. Second parameter becomes how many updates it should run for.
Keep l1.repeat 
Add l1.every => Run on every update. Second parameter, how many updates should run.

Done