microsoft / microsoft/arcade-timers
Add a lock block
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4
- Forks
- 7
- Avg merge
- 21d 21h
- Merged PRs (30d)
- 1
Description
Yea, the title is kinda cryptic, but I want is a block that would act as a throttle but the delay would be infinite until the code inside it ends. So the code inside it won't run at the same time:
So like this:
on a button press:
lock while running:
summon enemy
pause 1 sec
If I press A 2 times with a delay of 250 ms in a second, then it would only summon 1 enemy. But if I press it 4 times with a delay of 500 ms over 2 seconds, then it would summon 2 enemies.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name files or tests. Start by locating the existing throttle implementation and the code that handles timer-related blocks, then compare their behavior with the proposed lock examples. Done means repeated button presses are serialized so a new invocation starts only after the prior block finishes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100