MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / jump

Function jump

assets/js/mario.js:19–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17document.body.addEventListener("click", jump);
18
19function jump() {
20 if (character.classList != "animate") {
21 character.classList.add("animate");
22 }
23
24 setTimeout(function () {
25 character.classList.remove("animate");
26
27 }, 1000);
28}
29
30var incrementScore = setInterval(function () {
31 currentPoint++;

Callers 1

keysControlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected