Jump to content

Physics cursor: Difference between revisions

Dat Hack3r (talk | contribs)
m Fuck yall's writing skills.
Dat Hack3r (talk | contribs)
m Removed incorrectly placed semicolon and added new lines for readability.
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<p></p><syntaxhighlight lang="javascript" line>
/* Physics cursor script by fp, used for most physics parkour worlds. Often combined with the improved Guest cursors script and used with a ratelimit of 0 chars per second. */
/* Physics cursor script by fp, used for most physics parkour worlds. Often combined with the improved Guest cursors script and used with a ratelimit of 0 chars per second. */
keyConfig.cursorUp = "";
keyConfig.cursorUp = "";
Line 12: Line 11:
var keyRight = false;
var keyRight = false;
var keyUp = false;
var keyUp = false;
document.addEventListener("keydown", function(e) {
document.addEventListener("keydown", function(e) {
     if (checkKeyPress(e, "UP")) {
     if (checkKeyPress(e, "UP")) {
Line 81: Line 81:
         }
         }
     }
     }
};
}
 
setInterval(tick, 1000 / 30);
setInterval(tick, 1000 / 30);
</syntaxhighlight>
 
[[Category:Scripts]]
 
/* [[Category:Scripts]] */