• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Programmer Need some scripts?

Status
Not open for further replies.
Are you sure its not because this community is dead?
 
Interesting Lua script: slither.io snakes
Make snakes (using the snake stone tiles)

needed functions:
snake:grow(INT) - adds INT to snake visual lenght
snake:addLenght(INT) - adds INT to snake virtual length (points)
snake:move(DIR) - moves head to certain direction
snake:getHeadPos()
snake:getBody() - returns table of positions
snake:crash() - kills snake

In addition we need to crunch 90 crade corners to kill others snakes.
Idea is if the snake middle position is corner position and corner is 2 tiles length to both sides then it will come 1 diagonal position closer to the inner side.
this 'crunching' is executed on snake:move

I guess that would be enough, I will do the rest.
 
Status
Not open for further replies.
Back
Top