Menu

Slither.io PS4

Slither.io PS4 Controller Support

Slither.io PS4 Controller Support

 

 

From: @strbeanjoe

I added DualShock 4 support to Slither.io (works on chrome)

 

Code

//Added enter support (by pressing x or options on home screen

// Tested in Chrome.
// Left stick to steer, X to accelerate

(function () {
if (!(“getGamepads” in navigator)) {
return;
}
var pollPad = function() {
var ps4 = navigator.getGamepads()[0];
if (ps4) {
var x = ps4.axes[0], y = ps4.axes[1];

if (Math.sqrt(x*x+y*y) < 0.1) x = y = 0; // deadzone radius
xm = 100 * x;
ym = 100 * y;

var xbutton = ps4.buttons[0].value;

setAcceleration(xbutton);

// map ps4 options key to enter button
var options = navigator.getGamepads()[0].buttons[9].value;
if(options || xbutton )
{
// start game
play_btn.elem.onclick();
}

var b = mc.getContext(“2d”);
b.save();
b.beginPath();
b.strokeStyle = ps4.buttons[0].value ? “white” : “lightGreen”;
b.arc(xm + mc.width/2, ym+mc.height/2, 8, 0, Math.PI * 2);
b.stroke();
b.restore();
}
window.requestAnimationFrame(pollPad);
};
pollPad();
})();

Bookmarklet

javascript:!function(){if("getGamepads"in navigator){var t=function(){var e=navigator.getGamepads()[0];if(e){var a=e.axes[0],i=e.axes[1];Math.sqrt(a*a+i*i)<.1&&(a=i=0),xm=100*a,ym=100*i,setAcceleration(e.buttons[0].value);var n=mc.getContext("2d");n.save(),n.beginPath(),n.strokeStyle=e.buttons[0].value?"white":"lightGreen",n.arc(xm+mc.width/2,ym+mc.height/2,8,0,2*Math.PI),n.stroke(),n.restore()}window.requestAnimationFrame(t)};t()}}(); void(0);
Soruce 1

Source 2

 

 

 

Slither.io Mods v3 Released!

Slither.io Mods User Script

How to install Slither.io Mods?

 

 

Make sure you disable any other slither.io extension and scripts first!

How to install user scripts?

Slither.io Mods User Script
Slither.io PS4
3.3 (66.67%) 6 votes

Slither.io

Slither.io Guide and Wiki page, list of slither.io “Slither io” Unblocked “Slitherio” skins and bots Slitherio Mods. Get the best Slither.io hacks today.

9 comments

  1. Higo says:

    //Added enter support (by pressing x or options on home screen

    // Tested in Chrome.
    // Left stick to steer, X to accelerate

  2. Oggy says:

    Would love to see this in extension form, I could not get it to work.

  3. Anonymous says:

    how do i do this?

  4. Anonymous says:

    I still can’t get it to work with my PS4 controller. I added the javascript line to the bookmark, but it still does not work. can you give a more detailed guide on how to use it if it does work.

Leave a Reply

Share your own scripts!

Share your own scripts on slitherio.org

Polls

Which One Is Better? Agar.io vs Slither.io or Others?

View Results

Loading ... Loading ...

Inside Slitherio.org

Slither.io Guide and Wiki page, list of slither.io "Slither io" Unblocked "Slitherio" skins and bots Slitherio Mods. Get the best Slither.io hacks today.

This contains mostly official news, by the original developers of the game! This way, you get to know the news first, and you are always up-to-date to tell your friends about the latest slither.io news! Things like new features, requests, answers to questions are always available on the news articles. If you are curious about what the devs say, check this out.

Most frequently asked questions (FAQ) will be answered here, as well as some responses to community questions. Articles from developers and other people that know a lot about the game will be listed here, so if you want to know more about the game.