I Coded Snake but there's a Catch...

2,869,728
0
Published 2022-07-09
So... in my latest indie game I coded snake except that the roles get reversed.

In this video I show off my most recent indie game Inverse Snake. It is a small game I coded where the player plays snake as the food instead of the snake. If you like this video, make sure to subscribe and leave a comment down below if you have any suggestions on what I should make next.

LINKS
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Support the channel: ko-fi.com/codenoodles
Itch.io: codenoodles.itch.io/
GitHub: github.com/OfficialCodeNoodles

█▀ █ █ █▄▄ █▀ █▀▀ █▀█ █ █▄▄ █▀▀
▄█ █▄█ █▄█ ▄█ █▄▄ █▀▄ █ █▄█ ██▄

All Comments (21)
  • @CodeNoodles
    Due to popular demand the thumbnail has been changed to the proper grammar (you're instead of your). So, you're welcome! Also, thanks for the support, guys!
  • This would make for an interesting multi-player game pitting snakes against the food People playing as snakes compete to become the biggest, whereas the food tries to stay alive as long as possible or kill all the snakes
  • Could you use Inverse Snake to make a local multiplayer VS mode Snake? One person is the food the other is the Snake.
  • @peterkiss1204
    It would be funny to have a "reverse" snake, where you start with a relatively long snake that shits at frequent, but random times and you have to avoid the ever growing number of permanent shitpiles. Difficulty settings could affect the length of the snake. Or this feature could be combined with the original game.
  • @Sollace
    Oh hey, finally something I've actually done before :D In university I coded a snake game for fun in JS. Looking at how you did the snake, food, and collision... There are a few ways you could optimise that, definitely. Firstly, you don't need any collision stuff. Just have a grid that is either occupied by food, a snake segment, or air, and then when the snake moves you check the tile it's going into for whether that's A) food, or B) snake. If it's food, you increase the snake's length. If it's snake, the snake dies and it's game over. For moving the snake, you don't have to move all the segments forward. Just remove the last segment and put it in front. To increase the snake's length when eating food, do the same as above without removing the tail segment.
  • @Beregorn88
    Here some suggestions Gives the snakes different colours and a different shade for the head Make the snakes always target the nearest piece of food, so that you can trick a snake into another piece of food, rather than following you, or start hunting you if you pass too close Snakes increase their speed every time they eat a piece of food
  • @gabrieljreed
    “After picking fights with the standard library for a while” Pretty much sums up my coding experience lol
  • @purplehaze2358
    I feel like this type of content is too smart for my tiny little brain.
  • 3 things: 1. You should hace a portal respawn cooldown when you go through the portal to discourage camping the portals and going through last second. 2. What happens if you go through the food? 3. If you want to make sure the snakes dont go straight for you you should make it so that they redirect to the closest food every 2ish seconds. Obviously i dont expect you to add these (ive taken some coding classes and i hate going back to a finished product and changing my code) but it is some solutions/questions i thought of when i was watching
  • @BaronVonCount
    got a feeling this is gonna blow up real soon. Great display of content in coding and game creation.
  • @Sly-Moose
    Dude made a whole new game. Mad respect. Interesting concept.
  • @keny1000
    You should've given each snake a different color so when they're all in a clump you can still differentiate them
  • so; here's an idea give snakes their own """"personalities"""", like in pacman where the ghosts have different behavior one might be persistent on chasing you, while one might try and wall you off once it realizes you're moving also, another thing you might want to add: some way to deter or even flat out kill one of the snakes temporarily, perhaps a poison apple you have to bait the snake into?
  • @NLR-J
    Here's a good idea for the game: make it, so that if a snake dies, it responds as only the head. This makes it so it's impossible for the snakes to all kill themselves, leaving you with an open field with no enemies. This will make the game more infinite.
  • @memetech-
    Note to self: make clone of this and make the player only move the first frame you press the button but you move every time you start pressing so if you want to really run away you have to really MASH
  • @feffy380
    "It's not an AI" Yes it is. Though hand-coded, it makes intelligent decisions based on its environment. You find these kinds of search algorithms at the start of every intro to AI course. Machine learning isn't the only subfield of AI
  • @E5PY
    I am just beginning my python journey. I initially didn't understand how making games would apply to real life tasks but your video helped me connect those dots. Thank you so much for including some of the work for the game.
  • Love the music! And the game looks really good, the UI and all the art blends well together 👍🏼👏🏼