ProdigyMathGameHacking icon indicating copy to clipboard operation
ProdigyMathGameHacking copied to clipboard

[HR] Enable WASD movement

Open afkvido opened this issue 3 years ago • 48 comments

Enable WASD movement

Requested by afkvido

Describe your hack:

A toggle that would let the character move with WASD

(Optional) Additional information

Idea:

  • variable X = [Get player location X]
  • variable Y = [Get player location Y] .
  • When W key pressed: [Set player location to x:(X) y:(Y + 4)

Have you made sure this hack isn't available yet?* (Yes/No)

The hack is not available in Will's Cheat Menu.

afkvido avatar Jan 31 '22 22:01 afkvido

good idea

donaldli2020 avatar Feb 01 '22 01:02 donaldli2020

window.onkeydown = function() {	
	var keyCode = event.keyCode;
	
	if (keyCode == 87) {	
		// change y by 4
	}
	if (keyCode == 65) {	
		// change x by -4
	}
	if (keyCode == 83) {	
		// change y by -4
	}
	if (keyCode == 68) {	
		// change x by 4
	}
}

donaldli2020 avatar Feb 01 '22 01:02 donaldli2020

looks quite nice! we just need to implement this into WCM!

afkvido avatar Feb 01 '22 05:02 afkvido

Í've wanted to be able to do this for a while.

looks quite nice! we just need to implement this into WCM!

I´ll implement this later if I can figure out how to move programatically.

LeoBadeaux avatar Feb 01 '22 16:02 LeoBadeaux

This is actually a wonderful idea. Moving with a mouse is so janky.

00100000 avatar Feb 01 '22 17:02 00100000

I believe in order for us to do this we have to do some physics calculations to determine the move location based on the players speed. In addition, it would be nice to have this automatically enabled.

LeoBadeaux avatar Feb 01 '22 17:02 LeoBadeaux

This is actually a wonderful idea. Moving with a mouse is so janky.

After playing minecraft and other competitive wasd games for like a year and returning to prodigy, it's quite impossible to move..

afkvido avatar Feb 01 '22 17:02 afkvido

I believe in order for us to do this we have to do some physics calculations to determine the move location based on the players speed. In addition, it would be nice to have this automatically enabled.

+upvote

afkvido avatar Feb 01 '22 17:02 afkvido

Wait wait... VIM CONTROLS! hjkl to move! It's way better than WASD for 2d movement!

00100000 avatar Feb 01 '22 17:02 00100000

Wait wait... VIM CONTROLS! hjkl to move! It's way better than WASD for 2d movement!

no

ArcerionDev avatar Feb 01 '22 17:02 ArcerionDev

I believe in order for us to do this we have to do some physics calculations to determine the move location based on the players speed. In addition, it would be nice to have this automatically enabled.

no this might be unnecessary. Just make it click to the side of the player, if possible.

00100000 avatar Feb 01 '22 17:02 00100000

Wait wait... VIM CONTROLS! hjkl to move! It's way better than WASD for 2d movement!

no

hmph! mouse navigator! why use WASD when you can keep your hand firmly on the home row with vim navigation?

00100000 avatar Feb 01 '22 17:02 00100000

Wait wait... VIM CONTROLS! hjkl to move! It's way better than WASD for 2d movement!

no

hmph! mouse navigator! why use WASD when you can keep your hand firmly on the home row with vim navigation?

no! even better! what if we made a hack that lets you walk by clicking where you want to walk to?

LeoBadeaux avatar Feb 01 '22 17:02 LeoBadeaux

I don't see why it can't co-exist with the vim controls :^)

your sarcasm does little to disprove my point!

00100000 avatar Feb 01 '22 17:02 00100000

I don't see why it can't co-exist with the vim controls :^)

your sarcasm does little to disprove my point!

WASD is better

afkvido avatar Feb 01 '22 17:02 afkvido

I don't see why it can't co-exist with the vim controls :^) your sarcasm does little to disprove my point!

WASD is better

How so? Your hand is off the home row. hjkl makes sense for any vim user.

00100000 avatar Feb 01 '22 17:02 00100000

EVERYONE USES WASD bruh

afkvido avatar Feb 01 '22 17:02 afkvido

...not non-gamers who use vim.

00100000 avatar Feb 01 '22 17:02 00100000

...not non-gamers who use vim.

vim is for losers

LeoBadeaux avatar Feb 01 '22 17:02 LeoBadeaux

vim is for people who want a frictionless workflow!

00100000 avatar Feb 01 '22 17:02 00100000

vim is for people who want a frictionless workflow!

vim is for programmers who live in their moms basement with a 2003 core i5 windows machine with a dark cloak on and no lights on. image

LeoBadeaux avatar Feb 01 '22 17:02 LeoBadeaux

sounds like someone had trouble learning the shortcuts.

00100000 avatar Feb 01 '22 17:02 00100000

sounds like someone had trouble learning the shortcuts.

Your location is a lie because there is no way you have a Great Neck looking down at your book of vim shortcuts every 2 seconds. You probably write code with spaces too.

LeoBadeaux avatar Feb 01 '22 17:02 LeoBadeaux

32n, nobody uses Vim because i only learned about it today

afkvido avatar Feb 01 '22 17:02 afkvido

32n, nobody uses Vim because i only learned about it today

Any decently experienced programmer knows what vim is.

00100000 avatar Feb 01 '22 18:02 00100000

sounds like someone had trouble learning the shortcuts.

Your location is a lie because there is no way you have a Great Neck looking down at your book of vim shortcuts every 2 seconds. You probably write code with spaces too.

sounds like someone had trouble learning the shortcuts. 😬

00100000 avatar Feb 01 '22 18:02 00100000

ur bad

afkvido avatar Feb 01 '22 18:02 afkvido

sounds like someone had trouble learning the shortcuts.

Your location is a lie because there is no way you have a Great Neck looking down at your book of vim shortcuts every 2 seconds. You probably write code with spaces too.

sounds like someone had trouble learning the shortcuts. 😬

you already used that joke you bozo

LeoBadeaux avatar Feb 01 '22 18:02 LeoBadeaux

ArcerionDev avatar Feb 01 '22 19:02 ArcerionDev

here's a really lazy implementation that kinda works but not great

document.addEventListener("keydown", function (event) {
	switch (event.key) {
		case "w":
			_.player._playerContainer.y = _.player._playerContainer.y - 1;
			break;
		case "s":
			_.player._playerContainer.y = _.player._playerContainer.y + 1;
			break;
		case "a":
			_.player._playerContainer.x = _.player._playerContainer.x - 1;
			break;
		case "d":
			_.player._playerContainer.x = _.player._playerContainer.x + 1;
			break;
	}
});

rusprice avatar Feb 01 '22 22:02 rusprice