Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[HR] Enable WASD movement #1310

Open
afkvido opened this issue Jan 31, 2022 · 48 comments
Open

[HR] Enable WASD movement #1310

afkvido opened this issue Jan 31, 2022 · 48 comments

Comments

@afkvido
Copy link
Contributor

afkvido commented Jan 31, 2022

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.

@donaldli2020
Copy link
Contributor

good idea

@donaldli2020
Copy link
Contributor

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

@afkvido
Copy link
Contributor Author

afkvido commented Feb 1, 2022

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

@LeoBadeaux
Copy link
Contributor

LeoBadeaux commented Feb 1, 2022

Í'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 LeoBadeaux self-assigned this Feb 1, 2022
@00100000
Copy link
Member

00100000 commented Feb 1, 2022

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

@LeoBadeaux
Copy link
Contributor

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.

@afkvido
Copy link
Contributor Author

afkvido commented Feb 1, 2022

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
Copy link
Contributor Author

afkvido commented Feb 1, 2022

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

@00100000
Copy link
Member

00100000 commented Feb 1, 2022

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

@ArcerionDev
Copy link
Contributor

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

no

@00100000
Copy link
Member

00100000 commented Feb 1, 2022

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
Copy link
Member

00100000 commented Feb 1, 2022

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?

@LeoBadeaux
Copy link
Contributor

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?

@00100000
Copy link
Member

00100000 commented Feb 1, 2022

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

your sarcasm does little to disprove my point!

@afkvido
Copy link
Contributor Author

afkvido commented Feb 1, 2022

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

@00100000
Copy link
Member

00100000 commented Feb 1, 2022

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.

@afkvido
Copy link
Contributor Author

afkvido commented Feb 1, 2022

EVERYONE USES WASD bruh

@00100000
Copy link
Member

00100000 commented Feb 1, 2022

...not non-gamers who use vim.

@LeoBadeaux
Copy link
Contributor

...not non-gamers who use vim.

vim is for losers

@00100000
Copy link
Member

00100000 commented Feb 1, 2022

vim is for people who want a frictionless workflow!

@LeoBadeaux
Copy link
Contributor

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

@00100000
Copy link
Member

00100000 commented Feb 1, 2022

sounds like someone had trouble learning the shortcuts.

@LeoBadeaux
Copy link
Contributor

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.

@afkvido
Copy link
Contributor Author

afkvido commented Feb 1, 2022

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

@00100000
Copy link
Member

00100000 commented Feb 1, 2022

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

Any decently experienced programmer knows what vim is.

@00100000
Copy link
Member

00100000 commented Feb 1, 2022

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

@afkvido
Copy link
Contributor Author

afkvido commented Feb 1, 2022

ur bad

@LeoBadeaux
Copy link
Contributor

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

@ArcerionDev
Copy link
Contributor

@rusprice
Copy link
Contributor

rusprice commented Feb 1, 2022

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

@afkvido
Copy link
Contributor Author

afkvido commented Feb 1, 2022

i like that

@donaldli2020
Copy link
Contributor

donaldli2020 commented Feb 2, 2022

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

@afkvido
Copy link
Contributor Author

afkvido commented Feb 2, 2022

sure!

@LeoBadeaux
Copy link
Contributor

LeoBadeaux commented Feb 2, 2022

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.

@afkvido
Copy link
Contributor Author

afkvido commented Feb 2, 2022

True, but some WASD movement is better than none

@LeoBadeaux
Copy link
Contributor

True, but some WASD movement is better than none

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

@afkvido
Copy link
Contributor Author

afkvido commented Feb 2, 2022

Definetly! :)

@afkvido
Copy link
Contributor Author

afkvido commented Feb 3, 2022

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

@LeoBadeaux
Copy link
Contributor

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

@afkvido
Copy link
Contributor Author

afkvido commented Feb 3, 2022

yay!!!!

@PatheticMustan
Copy link
Member

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

@LeoBadeaux
Copy link
Contributor

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

@PatheticMustan
Copy link
Member

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

@afkvido
Copy link
Contributor Author

afkvido commented Feb 3, 2022

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

Sent From My iPhone ™️

@LeoBadeaux LeoBadeaux removed their assignment Feb 4, 2022
@LeoBadeaux
Copy link
Contributor

Unassigned because I am not wanted here.

@PatheticMustan
Copy link
Member

passy aggy..?

@afkvido
Copy link
Contributor Author

afkvido commented Feb 26, 2022

hello, anybody here?

@ghost
Copy link

ghost commented Feb 27, 2022

When will this be added?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants