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

  Рет қаралды 2,871,543

CodeNoodles

CodeNoodles

Күн бұрын

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/code...
Itch.io: codenoodles.it...
GitHub: github.com/Off...
█▀ █ █ █▄▄ █▀ █▀▀ █▀█ █ █▄▄ █▀▀
▄█ █▄█ █▄█ ▄█ █▄▄ █▀▄ █ █▄█ ██▄

Пікірлер: 2 300
@CodeNoodles
@CodeNoodles 2 жыл бұрын
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!
@waffler-yz3gw
@waffler-yz3gw 2 жыл бұрын
i found this video after the change and im really nitpicky so i probably would have ignored this video if the thumbnail grammar was wrong, thank you
@wertyjax
@wertyjax 2 жыл бұрын
I actually ignored the video because of that, now watching it
@irok1
@irok1 2 жыл бұрын
Good save
@waffler-yz3gw
@waffler-yz3gw 2 жыл бұрын
@@wertyjax your spelling, sir.
@dagreatleaf9003
@dagreatleaf9003 2 жыл бұрын
Change it to your’re
@ethanisnotsleeping
@ethanisnotsleeping 2 жыл бұрын
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
@CodeNoodles
@CodeNoodles 2 жыл бұрын
So many good ideas!
@kayagorzan
@kayagorzan 2 жыл бұрын
Like a weird battle royale I presume
@johnes4882
@johnes4882 2 жыл бұрын
@@kayagorzan I assume it would be more like an .io game where there are no definite rounds and when you die you just go back to the bottom of the leaderboard
@JoooooooooooooooooooooooooooJ
@JoooooooooooooooooooooooooooJ 2 жыл бұрын
Reminds me of Pac-Man VS
@Ucatty2
@Ucatty2 2 жыл бұрын
Snakes and Voles! 😁
@gooseharbinger4851
@gooseharbinger4851 2 жыл бұрын
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
@NightChime
@NightChime Жыл бұрын
Imagine if you could eat the food, too, and get longer, increasing your length, making it harder to dodge enemies. Extra hazard of lesser importance, but enough to be worth avoiding when possible.
@BaronVonCount
@BaronVonCount 2 жыл бұрын
got a feeling this is gonna blow up real soon. Great display of content in coding and game creation.
@yaslerfuj
@yaslerfuj 2 жыл бұрын
Same, I thought this was a viral coding video or something, but just a random suggestion, hope it blows up :)
@DaemonWorx
@DaemonWorx 2 жыл бұрын
Here before 300 subs lol. But I do feel the same
@tt_thoma
@tt_thoma 2 жыл бұрын
I forgor to subscribe but you reminded me
@cherpsy3770
@cherpsy3770 2 жыл бұрын
yea
@seyj7457
@seyj7457 2 жыл бұрын
It blew up. KZbin recommended it to me and the only reasonable connection is one Code Bullet video I skimmed through a couple weeks ago
@feffy380
@feffy380 2 жыл бұрын
"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
@Rutious4
@Rutious4 2 жыл бұрын
Yes thank you it annoys me so much
@ManiGzz87
@ManiGzz87 2 жыл бұрын
Still technically not AI.
@MrDarkSky
@MrDarkSky 2 жыл бұрын
I like your funny words, magic man
@bravebeatT
@bravebeatT 2 жыл бұрын
@@ManiGzz87 its a fkin AI bcz it makes DESICIONS between 2 or more status
@ManiGzz87
@ManiGzz87 2 жыл бұрын
@@bravebeatT Still TECHNICALLY not an AI
@lomanalchemik7749
@lomanalchemik7749 2 жыл бұрын
I really love it! Few tips for actual game: 1. You should make snakes different colours so they don't blend together 2. You could add some massive point boost after killing the snake so it would be more profitable to outsurvive them all in a short game than to simply survive the longest time possible. And for 2.0: Powerups. Players love powerups let it be brief invulnerability, repelent, bonus points, speed up, slow for snakes, freeze time, even extra life!
@MakingYouSad
@MakingYouSad 2 жыл бұрын
Cool suggestions, I hope we will something like this implemented in the game :)
@mamathama8923
@mamathama8923 Жыл бұрын
You can add them yourself. The source code is available.
@zaishijunior9455
@zaishijunior9455 Жыл бұрын
@@mamathama8923 hara hara hara ha ha harararararara
@weirdnessfades
@weirdnessfades 2 жыл бұрын
To the people who can code... I salute to you
@KateSullivan135
@KateSullivan135 2 жыл бұрын
I have a few suggestions for making the game more interesting. Have the score be based on how many fruits you can collect yourself. Collecting fruits give you some amount of score, and that score has a bonus for each fruit you've gotten without using a portal. If you take a fruit that a snake was after, it aggros you. Using a portal resets your multiplier, but it also resets the aggro on any snakes that had you targeted. This gives you an objective that intersects with the snakes objective, and instead of standing next to a portal and waiting on snakes to get close, you are constantly moving into danger.
@Lavanence
@Lavanence Жыл бұрын
snake pacman
@4P5MC
@4P5MC 2 жыл бұрын
This is very good quality for such a small channel! One suggestion I'd have is give the snakes a random offset from their base colour. Not enough to make them wildly different, but just enough that you can tell two of them apart when they're adjacent.
@CodeNoodles
@CodeNoodles 2 жыл бұрын
Excellent point! This isn't actually my first time doing crazy things with snake because one time I did exactly what your describing. Thanks for the support!
@Sly-Moose
@Sly-Moose 2 жыл бұрын
Dude made a whole new game. Mad respect. Interesting concept.
@bleachisgoodforyouhealth7800
@bleachisgoodforyouhealth7800 2 жыл бұрын
You are a very gifted teacher. I've been teacNice tutorialng soft for over 50 years and really appreciate your video being a beginner in soft soft.
@augustaseptemberova5664
@augustaseptemberova5664 Жыл бұрын
Probably won't make a noticeable difference, but you can make the push 1:38 more efficient: only move the head to its next position and then push the tail segment to the position where the head was previously. Efficiency goes from O(n) -> O(1) This way the snake's lengths won't affect their push speed.
@williamdrum9899
@williamdrum9899 Жыл бұрын
Could snake size also be another variable that is kept elsewhere, kind of like a pascal string?
@xGOKOPx
@xGOKOPx Жыл бұрын
Or he could make tiles with snake non-walkable for the purpose of pathfinding. Seems like a sensible solution
@Vorael
@Vorael 2 жыл бұрын
This is neat! I think it'd be cool if you gave the snakes the Pac Man ghost treatment, honestly. Give them different colors and different "personalities." One could always be hunting you regardless, one could more or less ignore you and only go after stationary food, one could just go after whatever food was closest, one could randomly switch targets every few seconds, etc.
@brodyperry2294
@brodyperry2294 Жыл бұрын
I may not be looking in the right areas but I don’t know that I’ve ever seen someone make there game available and I love that, thank you
@xM0nsterFr3ak
@xM0nsterFr3ak 2 жыл бұрын
1:18 made me laugh way harder than it should😂
@rcnhsuailsnyfiue2
@rcnhsuailsnyfiue2 2 жыл бұрын
Your code is super clean! 💯 Structured logically, formatted nicely, and easy to follow. Having managed dev teams for many years, my code review senses got all excited watching this… 😆 Great vid!
@CodeNoodles
@CodeNoodles 2 жыл бұрын
Lol thanks! Most people are quick to point out problems/flaws with code so thanks for the positive feedback!
@rcnhsuailsnyfiue2
@rcnhsuailsnyfiue2 2 жыл бұрын
@@CodeNoodles and well deserved! It’s rare to see code of this standard on KZbin... I really appreciated your consistent naming conventions (“isX()” for functions returning booleans, or “getX()” for methods returning calculated properties). Your static Snake::isSafe() method used reference calling cleverly across multiple Snake instances… And I liked how you used ternary operators to make your code shorter, but not at the expense of readability :) I’m guessing you do this professionally? If you don’t mind me asking, for how many years? Keep it up dude. Your code is poetry 🙌🏻
@gurvanshsingh2271
@gurvanshsingh2271 Жыл бұрын
@@CodeNoodles the reason they can even POINT out flaws is cuz you code is clean as hell Wear it as a badge of honor my g
@deatho0ne587
@deatho0ne587 Жыл бұрын
@@CodeNoodles 5:08 Hate to be mean, but this fails both clean (5 indents, lines 13 to 23 should most likely be a separate function) and it sounds like you did not fully understand it (basically can you describe it to a none DEV). Just one example, most of it looks good and I can understand the function at 5:08 in context.
@KStarPR
@KStarPR 2 жыл бұрын
Aside from the "controlling the food" part, this reminds me of an old pc game called Snake Arena. I've always wanted a new version of that game, and an inverse mode would be pretty cool, especially if other people's "food vs. snake" mode idea is incorporated.
@Firefly256
@Firefly256 2 жыл бұрын
I think the portals should have a set distance, so they’re not too close to each other which makes the portals kind of useless. I also think screen wraps will be a great addition as well so there’s a secondary option to escape other than portals
@pineappleudh6561
@pineappleudh6561 2 жыл бұрын
Problem with that is you could just stand at the edge and repeatedly go back and forth, so long as you were fast I'm pretty sure it would make you nearly immortal.
@proloycodes
@proloycodes 2 жыл бұрын
@@pineappleudh6561 what if the snake could screen wrap as well?
@pineappleudh6561
@pineappleudh6561 2 жыл бұрын
@@proloycodes Would likely be even more complicated to code and would completely invalidate the usefulness of the mechanic but would fix the issues I provided. (Probably)
@JKd3vLD
@JKd3vLD 2 жыл бұрын
It could be done in certain areas only, much like PacMan does
@Firefly256
@Firefly256 2 жыл бұрын
@@pineappleudh6561 maybe add a cooldown?
@scarleteye2
@scarleteye2 2 жыл бұрын
0:30 today im gonna be eating a whole jar of sauce while listening to classical music
@mrfoxyx
@mrfoxyx Жыл бұрын
Do it again
@TJ-Henry-Yoshi
@TJ-Henry-Yoshi Жыл бұрын
I thought the thumbnail said "You are the fool" and that made this way funnier. Really cool concept tho!
@zskull162
@zskull162 2 жыл бұрын
If you can, I think the snakes would look nicer if the body of the snakes was slightly smaller than the head, to make it a little easier to tell orientation when they’re next to eachother.
@LugiDergX
@LugiDergX 2 жыл бұрын
Adding onto this suggestion, actual snake like body could be cool! Head is the biggest, segment behind it slightly smaller, another smaller again, then another behind it even smaller and so on.
@ftwgaming0
@ftwgaming0 2 жыл бұрын
8:19 Casually just portal into the body of a snake.
@CodeNoodles
@CodeNoodles 2 жыл бұрын
Lol, um pretend you didn't see that
@trethetree
@trethetree 2 жыл бұрын
@@CodeNoodles see what?
@محمدالخصيب-ر3ح
@محمدالخصيب-ر3ح Жыл бұрын
Truly inspired ,i study c++ and I thought it has no future in programming games but u proved how ignorant I was . nice vid by the way
@Qsie
@Qsie 2 жыл бұрын
noodles: "This total abomination" 2:11 me: this is fine! what do you mean? snake tail: becomes hydra me: oh...
@Swaggyswisscheez
@Swaggyswisscheez 2 жыл бұрын
For those of you wondering out there. The music in the background at 0:40 is bach suite no.1 (cello)
@sumitpun7709
@sumitpun7709 2 жыл бұрын
For a quick pace game : - MAKE THE APPLE ABLE TO POWERUP! By eating a time limited random powerup. 1) invisible apple 2) slow down snakes 3) create some random wall from near snake 4) shoot a fire to make the nearest snake half in size.. 5) cap for powered apple is it will turn golden apples which makes frog sounds and snake will be in frenzy hungry active mode during powerup ( double edge benefits\ diff hard mode) more time they are hu ger more speed but after some secs they will just be normal or double slow fro a certain time 6) one escape powerup to escape after getting eaten straight ahead 4 5 tiles? 7) shield to protect from poison 8) can create fake frogs that attracts snakes -FOR SNAKES : 1) if ai makes mistakes or eat eachother or intersect eachother, either they merge as one or the smaller interested part becomes attach like cannibalism ( can be tactic for snakes in hard mode if the no of snake is certain no) 2) head of snakes has eyes and some has toungue that can extend and grab snake 3) some have poison snake where they slow speed 4) everytime snakes eat a apple that get double speed and crown while other may or maynot help it get apple -RANDOM EVENTS 1) when after certain time intervals there will be appearance of a sound from apple to attract snakes ( diff level) 2) random time limited powerups pop up 2 3 at a time and if one is eaten other disappears 3) maps or structure can be added if tied off for a certain time 4) size of total field can be lowered with time as a time limited game 5) friends can be apple or snakes, but if one eats other or damage other same teams get same effect as whole or 50% of it. Many more but maybe complex than mario😂
@ibemper1850
@ibemper1850 2 жыл бұрын
code at 5:12 "don't even ask me to explain any of it", dw i will explain it this is what i interpret of the code i might be wrong, this is what i think though lets say we want to check if a particular snake, lets say his name is gustav, is safe, i.e gustav isnt colliding with another snake i have the function Snake::isSafe for just that, and i pass in the arguement is snakeIndex, and right now i am passing gustav as an input to the function, so for now, gustav = snakeIndex now i go through each and every snake in a list of snakes, the list of snakes is called "snakes" now while checking through the list of snakes, i want to check if gustav collides with any of them, but remember gustav is also in that list, i dont want to check if gustav is colliding against himself, so if(gustav==current_Snake_That_We_Are_Checking_Against_In_The_List), skip over gustav now i make a new "imaginary" snake called currentSnake, lets call him bob, since i like making names up now bob is made in such a way that his position is overlapping over the snake that we are currently checking, lets say we are checking the 3rd snake on the list, bob's position is overlapping over the 3rd snake on the list (the ternary operator is not even needed, unecessary complication, could have just done const Snake* currentSnake = &snakes[currentSnakeIndex]; or maybe i am just dumb and there is a reason behind it, idk) now we will go through every body part of bob, which in the code he calls it a "segment" of a snake this part is kinda long to explain and i have other things to do, so i will just tell the gist of what happens we go through every segment of bob, and check if that body part collides with any of gustav's body part, if yes, well gustav isnt safe, since he collided with bob my idea to reduce the code, i think the efficiency of the code is O(m*n) since you are using a nested loop for every part of gustav and every part of bob, essentially multiplying the time, now to check for collision, just check if gustav's head (i.e the 0th segment of the list that stores gustav's segments) is colliding with any part of bob, this is because no snake can physically move their whole body to the left or right all at once, yes snakes can TURN sideways but it cant fully move sideways or upwards or downwards all at once, so there is no need to check for every part of gustav, neither can snakes go backwards so the new algorithm should be O(m) , m = length of bob good job on the game
@CodeNoodles
@CodeNoodles 2 жыл бұрын
Yes. You are correct!
@Deretythe
@Deretythe 2 жыл бұрын
4:50 at line 4, you were always setting currentSnake to the snake at snakeIndex, which doesn't change at any point during the method. So each snake was only trying to avoid one particular snake many times, instead of trying to avoid every snake one time. If you had snakes[currentSnakeIndex] instead, it should have worked, and wouldn't need the snakeIndex parameter at all (I'm guessing that's the index of the snake the method is called on?)
@Smooth_Brain
@Smooth_Brain 2 жыл бұрын
and also the perpendicularity of the bisector was interfering with the vortex
@HiddenBush64
@HiddenBush64 Жыл бұрын
@@Smooth_Brainskeppy moment not really funny
@Smooth_Brain
@Smooth_Brain Жыл бұрын
@@HiddenBush64 how did u know
@HiddenBush64
@HiddenBush64 Жыл бұрын
@@Smooth_Brain I could recognise that phrase ‘perpendicularity of the bisector’ from a light year away
@mudkippity
@mudkippity Жыл бұрын
@@HiddenBush64 perpendicularity moment
@devini15yt
@devini15yt 2 жыл бұрын
This is pretty neat, I do think it would be cool if the different snakes were different colors so you could tell them apart when they go right next to each other
@PlayerALH
@PlayerALH 2 жыл бұрын
I only started to watch you 1 hour ago and Im already addicted.
@briannawarren4174
@briannawarren4174 2 жыл бұрын
Absolutely loved seeing the dev's journey. All the little tweaks and twists to make it balanced
@paul10724
@paul10724 2 жыл бұрын
9:16 Hey, that‘s me. 😁 Good video and an interesting idea. I already saw the video when it had 38 views.
@CodeNoodles
@CodeNoodles 2 жыл бұрын
Thanks for the support!
@paul10724
@paul10724 2 жыл бұрын
You are welcome!
@illdeletethismusic
@illdeletethismusic 2 жыл бұрын
the score and win/loss conditions could turn this into two different ways of competing: 1. high score, win or loss act only as tiebreakers 2. lowest score win
@AtomicTheCherry
@AtomicTheCherry Жыл бұрын
I feel like there be a mode where you or the snake can compete over power ups that gives different effects depending whether it's grab by a snake or you for example a 'explosive power up' will split a snake into more snakes if it's grabbed by snake or it'll remove snakes around you if it's grabbed by food
@dodo2829
@dodo2829 2 жыл бұрын
Congrats! Your video is on KZbin recommendations.
@TheRenofox
@TheRenofox 2 жыл бұрын
For a game idea, there's one mechanic I couldn't even start to plan out myself: How would you make a gravity-based lander game on a non-round body? For example, landing on specific spots on a moon-sized pony, with gravity being extremely weird due to the mass of its limbs pulling the lander in different directions.
@JayOhm
@JayOhm Жыл бұрын
Huh. No matter how old a game is, it is possible to add a new twist to it, it seems. A bit off-topic, but this reminded me of "Hatetris" - a "stop-motion" Tetris where each piece you get is "the worst possible". Think as long as you want, maneuver pieces as precisely as you need, see if it helps you clear any lines at all xD (My "high score" is 1)
@tomilant
@tomilant Жыл бұрын
I thought it would be a strategy game where you'd try to kill the snake as fast as possible by either moving the food like you did or choosing where it spawns next. Not necessarily survive, you could actually try to feed him fast to make him grow faster than he can follow. That wouldn't be as fun as you made it though. But definitely something I'd be interested in.
@cobalius
@cobalius 2 жыл бұрын
Idea: What about a multi-purpose power up? - If you pick up that power up, you'll get (max 1) copy of yourself within (min 4, max 8) blocks around you. You'll control both at the same time. And a random one will automatically disappear after (min 8, max 10) seconds later, indicated by the disappearing one by blinking (2 ~ 3) times right before disappearing. - When either you or the copy gets eaten, the snake will loose (max 3) tiles (and dies when having less than 6) and becomes stunned for (0.5) seconds. - ramming the copy into another snake will do nothing, it just gets rid of the copy as it has not been eaten. - getting another power up as food, while you already have a copy resets the time out. - teleporting as food with a copy, teleports both. - Well, but the catch is.. the powerup does speed up (+10%) a (random / the same) snake, if any snake ate it before ya.. - (and if the powerup is too op for the food, it will speed up every snake by +10% right when the copy disappears due to time out. Or, when rammed, +5% speed for any other snake) - (and if the powerup is too op for the snakes, the food can also ram it's copy into a snake, to stun and / or reset the speed bonus from the target.) -> Parethesis incated balancing options.
@edyrfx1177
@edyrfx1177 2 жыл бұрын
Now you just need to programm an Algorithem that controles the food and makes it stay alive as long as possible :)
@Noizzed
@Noizzed 2 жыл бұрын
Give different colors to the snakes and make their bodies have a gradient in color value from head to tail, brighter at the start darker at the end.
@milkman2962
@milkman2962 Жыл бұрын
Now create an AI to play the food and you the snake. This is going to be revolutionary.
@AlbusTogglebog
@AlbusTogglebog 2 жыл бұрын
So basically Pac Man?
@stanleyconnor6898
@stanleyconnor6898 Жыл бұрын
What if the "food player" could collect other food, such as score points. Or time spent without being eaten will increase the total score (and add some features to your protégé). And this is in addition to the previous multiplayer gaming offers.
@goldbloxxer8833
@goldbloxxer8833 2 жыл бұрын
The Food: Ok, let's see how you like it. Snake: Wait what are you do- [Swaps roles] The Food: *HOW DOES IT FEEL TO BE THE ONE GETTING CHASED, HUH? YOU DON'T LIKE IT, DO YOU? THIS IS WHAT YOU GET FOR CHASING US, ALL THESE YEARS!* Snake: AAAAAAAAAAAAAAAAAAAAA NO PLEASE IM SORRY. I WILL NEVER EAT YOU GUYS AGAIN! I'LL EAT SOMETHING ELSE I SWEAR! I WILL NEVER GO BACK HERE AGAIN!
@jacobpage8028
@jacobpage8028 Жыл бұрын
What about coding a snake game where the food appears on your tail. That way you wouldn't be able to eat the food by going in a circle, because the end would get bigger and you'd die. You would have to time it right so the tail goes by your head so you can get the food, but by the time your tail grows, it's on the tile to your right.
@sparxthedog
@sparxthedog Жыл бұрын
If you ever decide to do whole ass animations like google does for their snake game I have an idea The food is a Rabbit(you) Enemy is the snake Other food can be a rabbit or other animals as well And portals can be rabbit holes
@BwugInTheRain_Fan
@BwugInTheRain_Fan Жыл бұрын
i was thinking like, it starts with a cutscene of the snake eating 3 apples (same color as you) but then when he almost eats you in the cutscene, you move up and then you get to the gameplay. and once the algorithm or ai would be at 7 blocks long, (2 apples spawn and they would chase you until they were closer to the other) a cutscene would play where it like zooms out to reveal that the ai is a "real player" on a desktop and he enables some mods and you have to fight the modded snake as a boss (youll always lose) and once u get eaten youll do some crazy things that mess with the files, so the screen will shift to the "player" ai in a cutscene where he turns of the screen, then theres a 3d part where you jump out of the screen and an endcard appears.
@yuiop2703
@yuiop2703 2 жыл бұрын
This is super cool! I find it very difficult to tell the portals apart though. Short of pausing the video to compare, I can't track it that quickly. Maybe using different colors? Like a purple portal that uses dark and light purple flickers, and a pink portal that uses light and dark pink, or something like that
@RyvirIsLoading
@RyvirIsLoading 2 жыл бұрын
Ideas For The Game: (If Interested) • A Blue Snake That is always 1.5x Faster then you and disappears after 10 seconds. • A Purple Snake that can Use The Teleports (Not Sure if it would be hard to implement lol) • A Grey Snake That Turns Invisible for 2 seconds every so on. Lol these are ideas I just thought of if you saw this thank you.
@ItsMe_Victor
@ItsMe_Victor Жыл бұрын
code noodles - code noodle - code nollet - code bullet
@saddoge1144
@saddoge1144 2 жыл бұрын
If only you uploaded this on opposite day then it will be perfect
@186scott
@186scott 2 жыл бұрын
I think this will bring snake back to being popular I remember playing snake and only once have I managed to complete it
@uaeoaeoeoi
@uaeoaeoeoi 2 жыл бұрын
You could also add another advantage for the food by letting it travel from one side to the other through running into the wall so that there is an escape option that is more consistent than the random portals.
@porky1118
@porky1118 Жыл бұрын
2:15 Good idea, but how much the snake size decreases per segment needs to depend on the total length. Basically Size = Max-Size * (1 - Segment-Index / Segment-Count).
@BazureSkyslash
@BazureSkyslash Жыл бұрын
Imagine missing the chance to call the game where you play as snake food "Snack"
@thetruezonein
@thetruezonein 2 жыл бұрын
5:10 : me to my IT teacher during my assignment
@discursion
@discursion 2 жыл бұрын
You should have made the snakes update their target to whichever food is closest to them, thus by approaching a food you can redirect the snake away from you (instead of adding weird portals). Or at least, have a small odd of changing target at every step.
@gr8ebi
@gr8ebi 2 жыл бұрын
If this was a multiplayer game where different players can control different food - that would be cool :)
@gamergod_yt3053
@gamergod_yt3053 Жыл бұрын
wow, this looks very good and its a original proyect what no one maded, good video and good game
@CLNDSTNStudio
@CLNDSTNStudio 2 жыл бұрын
I think making the snakes moves in 90 degree movements would make it way better… That way you could bait the snakes into killing themselves.... as it is now, it's practically impossible.
@edma06
@edma06 2 жыл бұрын
This is honestly making me want to actually go learn code. I’ve been putting it off for a long time I might start
@antjones4017
@antjones4017 Жыл бұрын
I just had an idea competitive snake basically you could take bites out of the other snakes tail until one of you is gone
@juanchecaro1856
@juanchecaro1856 2 жыл бұрын
Keep em' comin' and thanks for all of the help!!
@giordanonin
@giordanonin Жыл бұрын
I think the portal was not the best solution to that game design problem. A more elegant way would be if the player could pass over another food, then the snake would start targeting that instead of the player. It would make it more interesting because then you could make the player gain points based on it and it would be less confusing for the player.
@crowofshadow
@crowofshadow 2 жыл бұрын
Think about a multiplayer game of this where you start with one player snake and about 10 players as food and every time a food player gets eaten enough times to die he respawns as a snake to hunt down the remaining food players
@Vennnaya
@Vennnaya 2 жыл бұрын
What about a game mode where you PLACE the food? Like when the food is eaten, the game pauses and you can choose to place the food on any tile, with the ultimate goal being to try and trick the snake in to killing itself.
@AuthorTimmy
@AuthorTimmy Жыл бұрын
This would be a really fun multiplayer game
@SwordandKeyboard29
@SwordandKeyboard29 Жыл бұрын
This looks really cool! It would be neat if you could bait the snakes into going after another food by taking them near food, maybe give the snakes a pac-man style personality?
@friqxzw
@friqxzw 2 жыл бұрын
I am getting back into production after so ti and tNice tutorials makes it so easy to understand. Thank you so much for making these videos.
@randomslomo1875
@randomslomo1875 Жыл бұрын
Alternate title from "inverse snake"... "Snaken't"
@Zukoto
@Zukoto 2 жыл бұрын
What are you playing me : moving boxes
@forkenghar
@forkenghar Жыл бұрын
So, it is not snake anymore, it's a snack
@welp9356
@welp9356 2 жыл бұрын
That game actually sounds really awesome
@uiinpui
@uiinpui 2 жыл бұрын
underrated channel
@slipknotfya
@slipknotfya 2 жыл бұрын
I think a better system would be the player being faster than the snakes. Snakes should always go for the nearest food and they start the game being 5 blocks long. That way snakes start getting bigger and bigger, closing spaces to get through between them.
@ITpanda
@ITpanda Жыл бұрын
Would have liked to see the snakes use the portals when they path over them, however would not want them to consider them when pathfinding, which I don't think would be the case given how you coded things.
@Blessed_V0id
@Blessed_V0id Жыл бұрын
Great work. That is flat out more fun than snake
@littleferrhis
@littleferrhis Жыл бұрын
One idea I have is you could make it like pac-man, where you can hit a specific block and you become the snake, and you can eat the other snakes, but of course at the cost of making you bigger, and thus an easier target.
@CatGamer521
@CatGamer521 Жыл бұрын
Best time laps of my life
@eftorq
@eftorq Жыл бұрын
Cool idea! It would be awesome if code bullet machine learns the shit out of this!
@cam0201
@cam0201 Жыл бұрын
This guy is like the Nile red of programming
@NEWGHOST9
@NEWGHOST9 Жыл бұрын
The diagonal pathing is actually kinda cursed
@-sillykitty-
@-sillykitty- Жыл бұрын
teacher: the test isnt that confusing the test: 0:39
@LiekeTheGreat
@LiekeTheGreat 2 жыл бұрын
Very underrated.
@bigboyepic8598
@bigboyepic8598 2 жыл бұрын
What makes this an algorithm and not an AI? Sounds like an interesting difference.
@CodeNoodles
@CodeNoodles 2 жыл бұрын
It is technically an AI but my point was that it isn't machine learning that's all.
@thecatofnineswords
@thecatofnineswords Жыл бұрын
This is very cool. Nice work!
@Ok-fj7xx
@Ok-fj7xx Жыл бұрын
You should make an inverse inverse snake where you play as the snake 👍👍👍👍
@keetsh4711
@keetsh4711 Жыл бұрын
Inverse Snake, which could also be known as Snack
@dominicleroux
@dominicleroux 2 жыл бұрын
Could you add a colorblind mode. It's really hard to see the difference between the green and the red food.
@ho1y_9uacamo1e
@ho1y_9uacamo1e Жыл бұрын
Could you make the snakes different colors so it’s easier to tell how many there are?
@someonecalledrichardthehuman
@someonecalledrichardthehuman Жыл бұрын
What about making a simple 3d platformer but the catch is that the game changes layouts, palettes , the hub world ,and even making new levels using the regular levels as a base. Are you up to the challenge?
@Bluebear67
@Bluebear67 Жыл бұрын
Take your time and eat, it's not like the food is going no where
@echtblikbonen
@echtblikbonen Жыл бұрын
doing this with Beethoven's 5th is so good
@TheLightningNero
@TheLightningNero 2 жыл бұрын
wouldnt it be funny to outrun the sanke with the possibility to bait the snake in a portal?
@maldambao6126
@maldambao6126 Жыл бұрын
So you play as the "mouse" using burrows and tunnels to avoid the snake
@briezeee
@briezeee Жыл бұрын
Woah this is so cool… dude you’re amazing
@tudordraghiciu455
@tudordraghiciu455 Жыл бұрын
great video, and the game is really interesting. really like it
@kunodragon4355
@kunodragon4355 Жыл бұрын
I would've called it "Snaken't"
@BioTheHuman
@BioTheHuman Жыл бұрын
Me who thought that "Inverse snake" would be us trying to kill the snake (spawning the food in tricky locations) 😶
How I Made Kirby Maker
9:21
CodeNoodles
Рет қаралды 666 М.
AI Learns to play Geometry Dash || Part 1
9:53
CodeNoodles
Рет қаралды 196 М.
Ozoda - Lada (Official Music Video)
06:07
Ozoda
Рет қаралды 13 МЛН
Остановили аттракцион из-за дочки!
00:42
Victoria Portfolio
Рет қаралды 3,7 МЛН
I Coded Minecraft's Worst Update
10:59
Knarfy
Рет қаралды 445 М.
I Coded Pacman but it's Procedurally Generated
11:01
CodeNoodles
Рет қаралды 110 М.
I Made a Game Inside a Game Inside a Game Inside a Game...
10:38
Sam Hogan
Рет қаралды 7 МЛН
I Made a 1D Game 🎮
11:18
Mashpoe
Рет қаралды 1,7 МЛН
So I Coded Snake In Minecraft...
15:09
Fundy
Рет қаралды 8 МЛН
AI learns to play 2048
11:11
Code Bullet
Рет қаралды 10 МЛН
Using Image Recognition to play Mario Party Minigames
13:16
CodeNoodles
Рет қаралды 138 М.
So I Made Enchantments WORSE...
8:57
mysticat
Рет қаралды 3,3 МЛН
Beating a Pay to Win game with a bot
5:09
Kian Brose
Рет қаралды 2,1 МЛН
Making a Fake Multiplayer .io Game
11:03
Gambit
Рет қаралды 135 М.