Slither.io — Defensive Bot (basic)

Basic defensive/autopilot helper for slither.io

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
l3vin201
日安装量
0
总安装量
0
评分
0 0 0
版本
0.9
创建于
2025-11-29
更新于
2025-11-29
大小
9.2 KB
许可证
MIT
适用于

This userscript provides a basic defensive autopilot for Slither.io.
It attempts to detect nearby snakes and automatically steers your snake away from danger by sending simulated mouse movements. The goal is not to play aggressively or farm mass, but to help avoid accidental collisions.

Because the internal variables of the Slither.io client change frequently, this script is built as a template. It includes multiple fallback methods to read player and snake positions, but depending on the current game version you may need to adjust a few variable names inside the script (mainly in getGameObjects() and worldToCanvas()).

Features include:

Automatic defensive steering

Simple threat detection

Configurable safe distance, sensitivity, and loop interval

Optional debug overlay

Lightweight and easy to modify

This script is intended for educational and experimental purposes. Use it responsibly and be aware that automated gameplay may not be allowed by the game's terms of service.