Movement copied from the minecraft wiki :3

This commit is contained in:
2026-09-28 12:01:51 -03:00
parent ded9a7e5d0
commit 036f8075f5
5 changed files with 189 additions and 12 deletions
+2 -2
View File
@@ -69,8 +69,8 @@ const MAX_GIVE = 64 * 36;
const MAX_SUGGESTIONS = 100;
// falls up to this many blocks don't hurt, like minecraft
const SAFE_FALL = 4;
// faster than walking (4 blocks a second) and slower than sprinting (7)
const SPRINT_SPEED = 5.5;
// faster than walking (4.3 blocks a second) and slower than sprinting (5.6)
const SPRINT_SPEED = 5;
// moving further than this at once is a teleport, not a fall
const TELEPORT_DISTANCE = 20;
// how close feet have to be to a block's top to stand on it