Prodigy-Hacking / ProdigyMathGameHacking

Prodigy Hacking: Hacking for the right reasons. | Questions? Ask on our Discord. https://discord.gg/XQDfbfq
https://prodigyhacking.com
Other
17 stars 10 forks source link

[HR] Enable WASD movement #1310

Open afkvido opened 2 years ago

afkvido commented 2 years ago

Enable WASD movement

Requested by afkvido

Describe your hack:

A toggle that would let the character move with WASD

(Optional) Additional information

Idea:

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

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

donaldli2020 commented 2 years ago

good idea

donaldli2020 commented 2 years ago
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 commented 2 years ago

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

LeoBadeaux commented 2 years ago

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

00100000 commented 2 years ago

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

LeoBadeaux commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

ArcerionDev commented 2 years ago

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

no

00100000 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

your sarcasm does little to disprove my point!

afkvido commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

EVERYONE USES WASD bruh

00100000 commented 2 years ago

...not non-gamers who use vim.

LeoBadeaux commented 2 years ago

...not non-gamers who use vim.

vim is for losers

00100000 commented 2 years ago

vim is for people who want a frictionless workflow!

LeoBadeaux commented 2 years ago

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 commented 2 years ago

sounds like someone had trouble learning the shortcuts.

LeoBadeaux commented 2 years ago

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 commented 2 years ago

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

00100000 commented 2 years ago

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

Any decently experienced programmer knows what vim is.

00100000 commented 2 years ago

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 commented 2 years ago

ur bad

LeoBadeaux commented 2 years ago

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 commented 2 years ago

rusprice commented 2 years ago

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 commented 2 years ago

i like that

donaldli2020 commented 2 years ago

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 commented 2 years ago

sure!

LeoBadeaux commented 2 years ago

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 commented 2 years ago

True, but some WASD movement is better than none

LeoBadeaux commented 2 years ago

True, but some WASD movement is better than none

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

afkvido commented 2 years ago

Definetly! :)

afkvido commented 2 years ago

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

LeoBadeaux commented 2 years ago

@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 commented 2 years ago

yay!!!!

PatheticMustan commented 2 years ago

??? 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 commented 2 years ago

??? 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 commented 2 years ago

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 commented 2 years ago

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

Sent From My iPhone ™️

LeoBadeaux commented 2 years ago

Unassigned because I am not wanted here.

PatheticMustan commented 2 years ago

passy aggy..?

afkvido commented 2 years ago

hello, anybody here?

ghost commented 2 years ago

When will this be added?