![screen snake screen snake](https://i.ytimg.com/vi/ogq23U8iLKI/maxresdefault.jpg)
Paper.io 2 - a unique twist on snake, which involves expanding territory instead of growing a worm or snake!
![screen snake screen snake](https://www.redowlgames.nl/wp-content/uploads/2017/01/screen-Snake-extra-features.png)
Worms Zone - same game mechanics with a different feel, graphics, and unique features. There are other games similar to Slither.io, and it comes down to preference which games you like best. If your size becomes gargantuan, you can even catch a multitude of small snakes, leading to their inevitable demise and more nourishment for you! Similar Games Once you acquire adequate size, you can circle around smaller snakes, trapping them and tightening your grip, much like a regular snake would. These floating orbs will run away if you chase them, but it is worth more than the average dots around, so it may be worth pursuing. The other special orbs can occasionally be found floating around the arena. Finding these orbs early can grow your snake quickly. The bigger the snake that falls, the more plentiful the harvest. When a snake dies, they drop all of their glowing pellets. Special Orbsīesides the regular orbs that are widely available around the map, there are two special orbs. Use the boost wisely to ensure you get maximum value for the cost. This method can be used when you are racing against snakes, once you have the perfect spot near the opponent's head, make a sudden cut to eliminate it.
![screen snake screen snake](https://i.ytimg.com/vi/H2_sKXcAb-Y/maxresdefault.jpg)
Boost Your Speedīoost is an important feature, but it comes at the cost of your size. Work on the strategy of eating and avoiding until you've acquired enough size to take on smaller snakes. You start the game small, so don't try taking on the big boys until you've grown more powerful. The bigger the snake, the better your chance to trap other snakes By eating them, you increase the snake's size and gain more energy for boosting. The glowing orbs are your key to sustenance. But Slither.io introduces a multiplayer element that changes the playing field entirely. Like the classic game Snake that was available on cell phones and computers for decades, you grow by eating small pellets. Enjoy this twist on the classic snake genre with Slither.io! The players controlling the snakes, though. A tutorial for Python and Pygame Zero 1.Do you like snakes? It's cool if you don't because these snakes are no threat to you. Please send any feedback to snake.py RulesĮating food makes the snake grow. When the food is eaten it moves to another random position. The snake will wrap around to the other side of the screen when it goes off the edge. The game is over when the snake crashes into itself. The snake is represented by a sequence of X and Y positions. The food is represented by a single X and Y position. When the snake moves, then the last item in the sequence (i.e. its old tail position) is removed, and an item is added to the front (i.e. its new head position) in the direction that the snake is going. If the new head position is at the position same as the food's position, then the snake's tail is not removed, and the food is moved to a random position not occupied by the snake. If the new head position is at the same position as any of the snake's other segments, then the game is over.
![screen snake screen snake](https://i.ytimg.com/vi/WupwKZ-kQSY/maxresdefault.jpg)
The playing area is 20 cells wide and 15 cells high, and each cell has a side length of 15 pixels. If key = keys.RIGHT and direction != 'left':Įlif key = keys.LEFT and direction != 'right':Įlif key = keys.DOWN and direction != 'up':Įlif key = keys.UP and direction != 'down':Ĭurrently, the snake can still go backwards if another direction and then the opposite direction is pressed within a single tick of the timer. For example, if the snake moved right on the last tick, and then the player presses down then left before the next tick, then the snake will move left on the next tick.Īlso, the player may want to give multiple directions within a single tick. In the above example, the player may have wanted the snake to move down for the next tick, and then left on the tick after.Ī direction queue is created. The first item in the queue is the direction the snake will move on the next tick. If the direction queue has more than one item, then the first item is removed from it on every tick. When a key is pressed, the direction is added to the end of the direction queue. The last item in the direction queue (i.e. Preventing adding the same direction twice Timer = 0 if len( direction_queue) > 1: direction_queue.pop( 0) # etc.įor direction_index, direction in enumerate( direction_queue): # Removed: direction = 'right' direction_queue = the last direction pressed) is checked to see if it's not in the opposite direction of the new direction before adding the new direction to the direction queue.