0
I wanted to build a snake game using c. But I can't build it because this is going to be my first project to build a game.
I founded code to build a snake game online and it is difficult for me to understand therefore I need help how should I start? I am so confused.
3 Réponses
+ 5
While a snake game is a great way to prove your programming abilities, this is, based on the title, your first project to build a game.
Now, this is different for everyone, but I strongly recommend either attempting a much simpler game, like Pong. Through that you'll master collision detection, AI, and other useful topics.
However, if you really intend to make a snake game, I would separate the projects into separate parts. Ignoring advanced graphics, we essentially have a chain of connected blocks moving around a grid. On one of these random grid squares, there is an "apple", and the goal is to continue to eat the apple every time it "respawns".
Assuming you have previous knowledge in C, the game mechanics aren't too bad to code. I would strongly suggest you temporarily stop worrying about details and just... start coding. Once you have a basic form of the game, you can concern yourself with the specific mechanics that will enhance the game. Good luck! Please ask any questions you have.
+ 2
First of all, you will be able to understand each and every concepts of C language. Then, you must do the practice of programming as well as understand the codes and logic behind it.
Then you will be able to understand what actually code says!
But in case of snake game, you will study each function and their work step by step. Don't take it all at one time. Solve step by step.
Here is the link for snake game program in C, so you will understand, what actually code says:-
Game Programming in C Tutorial Four- Snake ...
https://www.thoughtco.com › game-prog...
And for code :-
https://www.google.com/url?sa=t&source=web&rct=j&url=https://www.scribd.com/doc/59555708/Snake-Game-In-C&ved=2ahUKEwj4mavfmMTfAhUHtI8KHRwEC1cQFjAAegQIBRAB&usg=AOvVaw2gLRtkHLgfexNyQMyNZPFz&cshid=1546057448850
0
https://code.sololearn.com/cyzjsny1rF24/?ref=app
Why graphics showing no such file or directory is showing error?
I was building boundaries for snake game.