Creating Simple Snake Game in C++ (With Source Code)@ProgrammingKnowledge

preview_player
Показать описание
Welcome to this course on C++ Tutorial for Beginners. In this video we will see How to create C++ Snake Game. We will Practice programming in C++ by writing a simple game.
C++ is general purpose, compiled, object-oriented programming language and its concepts served as the basis for several other languages such as Java, Python, Ruby, Perl etc.

The goal of this course is to provide you with a working knowledge of C++. We'll start with the basics, including syntax, operators, loops, and functions. This Course will explain you how to use data structures and create your own Functions. This Course will show you the details of the powerful object and template systems so you can create useful classes and objects.

#ProgrammingKnowledge #CppTutorial #CPPprogramming #Structures #Struct #SnakeGame #Game
★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

can't see the comments written, it looks like the color is too light with the white background.

tylerdollick
Автор

i am not that good at programming and I am not even from a computer science background and it takes me a lot of time to understand some stuff here and there but I have had no such hiccups while watching your video so far which is very surprising and impressive. You have a talent for teaching. Thanks for taking the time and making these videos.

Автор

Oh my.. you literally saved myself from making 4 for loops to make a board/map. Thank you so much. Subbed!

illmakethisgamelong
Автор

Except the sound quality everything about this video is great....thank you for this tutorial, it helped me a lot....

shreyosghosh
Автор

Thanks buddy!! I really learned a lot from this video. I had experience with various game engines like unity and unreal but i wanted to start from scratch to be efficient and just include what I need. In game engines it would have been super easy to create but I love c++ and it also efficient.

StellarMirage
Автор

thanks you very much! You opened my eyes for many things to do in console game (application ) development!

man-z
Автор

Your video helped me a lot man
But I have few problems here
I did everything you did, but sometimes my snake passes through the food without it getting eaten, like it just passes without eating. Another problem is, successfully when my snake enters the wall in the right it comes from the left, but when I go to the left wall, it just stops like it’s stuck. And when I hit the upper and lower wall, I lose. Please help me and thank you.

yousefsuzuki
Автор

The tutorial is awesome but my God, your voice in the second half is making my head explode.

TheSisovic
Автор

I have a problem where the fruit doesnt generate if eaten.(i think it has to something with how the board is generated everytime)can u help me please?

risshivarman
Автор

I have a question regarding the code for gen_food, I understand that it randomly generates a random coordinate, but wouldn't it be possible for the food to be spawned inside the snakes tail or body?

accelworld
Автор

Please tell how we can make same project using linked list

maryamakbar
Автор

while converting vector into list I'm facing an error in this line - " if(pos.X == body[i].X && pos.Y == body[i].Y) return true;" should I do??

priyanshusingh
Автор

to set cursor in linux use below function:
void SetCursorPos(int XPos, int YPos)
{
printf("\033[%d;%dH", YPos+1, XPos+1);
}

jayganatra
Автор

Sir Snake.h library is giving error at 30th minute of your video plz give solution of this problem sir

hitrwvp
Автор

thank you my friend this video helped me! keep up the good work!

emmangeli
Автор

i'am in process of developing codes in different programming langueges

DonathAbayizera
Автор

at 28:54 getting error ||=== Build file: "no target" in "no project" (compiler: unknown) ===|
F:\kuchbhi.cpp|3|fatal error: C:/Program Files Invalid argument|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

kshitijsharma
Автор

Really u r smart sir
hope u may bring good graphics in it soon..

saurabhtalele
Автор

sir i am using your code for my game but it is unable to generate food help me

fariagul
Автор

soudn quality is poor :((( otherwise awesome tutorial thank you

doron