Prodigy-Hacking/ProdigyMathGameHacking

[HR] Enable WASD movement

afkvido opened this issue ยท 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.

good idea

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
	}
}

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

ร'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.

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

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.

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..

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

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

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

no

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.

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?

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?

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

your sarcasm does little to disprove my point!

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

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.

EVERYONE USES WASD bruh

...not non-gamers who use vim.

...not non-gamers who use vim.

vim is for losers

vim is for people who want a frictionless workflow!

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

sounds like someone had trouble learning the shortcuts.

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.

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

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

Any decently experienced programmer knows what vim is.

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. ๐Ÿ˜ฌ

ur bad

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

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;
	}
});

i like that

I would use 10

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

sure!

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;
	}
});

What I mean by it only half-working is that there is no walking animation, and if you walk up to a shop display or a wheel display or something that would display a modal in general, It won't display, you would have to click walk to it. This does not mean that you can't go through different zones, that works fine. In addition, I haven't tested this to see if it will broadcast your new position to other people playing. Also, moving using multiple keys, like "W" and "D" doesn't exactly work great, and when moving in a different direction you have to let go of the keys or else the new direction won't register. Finally, you can walk through objects that you aren't supposed to be able to walk through.

True, but some WASD movement is better than none

True, but some WASD movement is better than none

of course, but this feature could use some immense more polishing.

Definetly! :)

@LeoBadeaux Wait, does this mean we can phase through solid ground? If so, then HELL YEA

@LeoBadeaux Wait, does this mean we can phase through solid ground? If so, then HELL YEA

Prodigy is 2D, therefore you can't go through a 3D Plane. This just means we can walk on stores and barriers and stuff.

yay!!!!

??? Don't we already have a "remove barriers" hack...? Maybe it wasn't implemented yet but I believe in prodigy.world it should hold a 2d array of 1s and 0s that determines if you can walk to certain areas or not. If you just patch that to be all 1s it should be the same thing

??? Don't we already have a "remove barriers" hack...? Maybe it wasn't implemented yet but I believe in prodigy.world it should hold a 2d array of 1s and 0s that determines if you can walk to certain areas or not. If you just patch that to be all 1s it should be the same thing

Please read the issue title.

I wasn't replying to the issue, I was replying to @afkvido's question

"does this mean we can phase through solid ground"

I assure you I have indeed read the issue title! yeah wow reading comprehension woooo

reading comparehernsion yes how hack prodigy pls i want coin and flex on grilzz

Sent From My iPhone โ„ข๏ธ

Unassigned because I am not wanted here.

passy aggy..?

hello, anybody here?

When will this be added?