Greasy Fork is available in English.

Gats.io with "Agar.io Movement"

Mod that adds "Agar.io Movement" for Gats.io

< Σχολιασμός για τον κώδικα Gats.io with "Agar.io Movement"

Αναφορά: Καλός - ο κώδικας λειτουργεί

NotYouΣυντονιστής
§
Δημοσιεύτηκε: 12/12/2022
Επεξεργάστηκε: 12/12/2022

Script works as it should, but I think you can to improve it, there are some ideas:

- Ability to turn off tracers
- "Movement safe zone", if cursor near player, then don't move.

TaureonΔημιουργός
§
Δημοσιεύτηκε: 12/12/2022

Ability to turn off tracers

yea, i could add that

"Movement safe zone", if cursor near player, then don't move.

"if mouse on player, dont move". sounds good enough to me

TaureonΔημιουργός
§
Δημοσιεύτηκε: 12/12/2022

aight i added them

NotYouΣυντονιστής
§
Δημοσιεύτηκε: 13/12/2022
Επεξεργάστηκε: 13/12/2022

Yooo, that's so cool man, implementation of "if mouse on player, dont move" is cool. Also, you could add some keybinding to toggle tracers, that would be much easier to toggle it.


const TRACERS_TOGGLE_KEY = 't'

let divvers = makeDiv({
  ...
}, {
  onclick: toggleTracers,
})

...

window.addEventListener('keydown', e => {
  if(e.code === 'Key' + TRACERS_TOGGLE_KEY.toUpperCase()) {
    toggleTracers()
  }
})

function toggleTracers() {
  drawTracers = !drawTracers;

  if(divvers) {
    divvers.style.backgroundColor = drawTracers ? '#0f0': '#f00';
  }
}
NotYouΣυντονιστής
§
Δημοσιεύτηκε: 13/12/2022
TaureonΔημιουργός
§
Δημοσιεύτηκε: 17/12/2022

added your suggestion, you can now toggle tracers with T!

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.