Created
July 16, 2020 09:27
-
-
Save Core-commits/f5928c94ab895dfbc265eadb6da659dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
world.bricks.forEach(async (brick) => { // Finds all brick possible in the map. | |
if (brick.name == "Kill") { // Is the specific brick currently on named "Kill"? | |
brick.touching(debounce((p) => { | |
p.kill(); | |
}), 500) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Async isn't necessary.