if snake ate itself the lives decreased and it shrinks to where it gets bitten.It would be good if your video showed an example of the part where it bites off its tail.
Never could bring myself to remake Snake... ;Dwell it happens ;D
It would be good if your video showed an example of the part where it bites off its tail.i edited the demo vid now it's clear that it shrinks when it bites itself.
I'm not sure this is a good mechanic, though, since the avoidance of its own tail should be the main difficulty.yeah, that might be considered if this demo turned to real game
I actually think the idea is interesting. If you do develop it further into a game, I'm curious as to your idea to make it work :)I'm not sure this is a good mechanic, though, since the avoidance of its own tail should be the main difficulty.yeah, that might be considered if this demo turned to real game
i edited the demo vid now it's clear that it shrinks when it bites itself.Video is better now.
I actually think the idea is interesting. If you do develop it further into a game, I'm curious as to your idea to make it work :)i would love to develop it further, but the main obstruction for me is the resources files like textures and sounds and etc.
Why does the snake die at 1:28?yeah, that happened because the snake's lives reached zero.
It loses a life each time it bites off its tail? This answers all of my previous questions ;DWhy does the snake die at 1:28?yeah, that happened because the snake's lives reached zero.
i would love to develop it further, but the main obstruction for me is the resources files like textures and sounds and etc.Have a look at OpenGameArt (http://opengameart.org/) for free resources.
i couldn't make them by myself.
[...]
also, i'm worried since you mentioned to someone in other post that we should be caution of violates the copyright and licences for any resources.
It loses a life each time it bites off its tail? This answers all of my previous questions ;Dhahaha , yeah that's what i want to say but my engilsh failed me ;D
Have a look at OpenGameArt (http://opengameart.org/) for free resources.thanks for links i will look at it.
Also, for sound effects, try Bfxr (http://www.bfxr.net/) (a sound effect generator - you can do it all on the website).
Nice project. I'll take a look at the code later, but for now I can advice you one thing: make commit messages meaningful, this may save you lots of time in the future ("When did I change X from Y?")thanks Elias really i appreciated, yes you are absolutely right the repo is indeed chaos and i don't use message for a commit. i don't know how to fix that but i will find a way to organize it.
I don't wanna sound like a smartass especially because I did same thing with my snake game, but you should split code in multiple files. Also you should avoid global functions.you are most welcome. feel free to point out any error or bad habit related to code. actually the main reason for posting source code is to get feedback like is code free of bugs, what the best practice for both c++/SFML ... etc.
You should find a design that works without global variables.http://fr.sfml-dev.org/forums/index.php?topic=16574.0
thanks for the links, yeah that is very true for global variable.Quote from: NexusYou should find a design that works without global variables.http://fr.sfml-dev.org/forums/index.php?topic=16574.0
Nice game, I like the idea to not be 90° orientated :)thanks, i'm glad you like it :)
I somehow think this is a more complicated version OrderNexus offers in his new book ;))))))yes, i was inspired by his work in his latest book, i believe his book targeted the absolute beginners in both C++/SFML which is an excellent choice for beginners not let them suffered in such advance topics in C++ languages. what i did, i took his snake example and port it to C++11/STL approach
(http://en.sfml-dev.org/forums/index.php?topic=19565.0)