Hi people
Is it possible to develop the snake game in unity,if so can any one tell me how. Please help out in this regards. It will be very helpful to me in my work.
Hi people
Is it possible to develop the snake game in unity,if so can any one tell me how. Please help out in this regards. It will be very helpful to me in my work.
What do you mean by that… do you want to know how to develop game or how to develop snake game…?
Yes. Well, a snake game (not sure what you mean by ‘the’ snake game).
Probably not in a single post
Also, there’s no one answer to that question (there are many ways it could be done).
What do you need help with exactly?
Start by reading the manual.
my problem is how to create the surface and how to create the snake and how to coordinate them in play
Learn about Unity Interface,Basic Scripting… from the unity tutorial page or some pdfs…
@Dinesh Balu,can you give links to some good materials…
to create the snake game we need to have some surface for the snake to roll on. Is it the right process to create that surface with terrain? or do we need use some thing else to use? and what we have to use to create snake? please reply to his post.
There’s not really any ‘need to’ involved. There are really no rules or guidelines about how such a game should be created. And, there’s no particular need to have a ‘surface’ (conceptual or actual) for the game to take place on. (Unless, of course, having such a surface is specified as part of the design.)
That would be unusual, but might be an option if you wanted to make a physics-based snake game of some sort (or even a ‘typical’ snake game, but where the snake followed the contours of the terrain as it moved). But in general, no, you don’t have to use a terrain.
Could be a 2-d array, or a queue, or a container of game objects, or multiple rigid bodies linked together, or one game object and a procedural mesh, etc., etc. In other words, there’s nothing you ‘have’ to use. There’s a multitude of ways to do it, so your best bet is probably just to pick a method and go with it.
Ok ![]()
Thanks a lot for your reply, I made the snake floor with game object and plane(mesh filter) and i added mesh renderer to them. And i am wondering how to make a snake, is there any compound to make or do we need to write script to make the snake.And what about the snake food and and snake tail.
Generally speaking, you’ll need to write code for all that.
At its simplest, a ‘snake’ game can be implemented using a 2-d array, where every cell is either open, a wall, occupied by the snake, or occupied by a ‘food’ item. One approach would be to use individual game objects for the walls, food items, and the snake body, and have the cells be GameObject references that are either null (unoccupied) or reference an appropriate object.
i am unable to proceed further in this game development, I am getting confused with the creation of the snake.
Try to learn each concept of the unity game objects and scripts. then start on a game…
Like Dinesh Balu said, you’ll need to learn the basics before you can make something of the complexity of a snake game. Specifically, you’ll need to learn about game objects and components and how they relate to one another, and you’ll need to learn at least the basics of programming in one of the languages that Unity supports.
You can get help here, but you’ll need to ask specific questions. In other words, instead of just stating that you’re not able to create the snake for your game, you might say, ‘I tried to assign my script to a game object, but got this error’ (for example).
All about snake game. I did some thing like this
Is this process is right one to make the snake game.??
will be waiting for suggestions.Thanks in advance.
I would recommend checking out Tornado Twins on YouTube. They have done a worms game, you could follow this tutorial and it may help with what your after.
Is there a particular reason you’ve made the snake object a child of the floor object?
Also, if you’re making a typical grid-based snake game, I wouldn’t bother using the physics system. (If you’re making a physics-based game, then using the physics system is appropriate, of course.)
thanks for the reply @lioncirth @Jesse Anders, I am in learning stages of gaming, so i don’t know what is appropriate, I am just trying the things randomly to work it out. can you tell me that is the right way. If that is not the right way please tell me the way.
Doing it that way might be appropriate in some circumstances, but unless you have a particular reason for doing so, I wouldn’t make the objects in the game child objects of the floor.