Search found 7 matches

by sheriff40
September 21st, 2017, 8:33 am
Forum: Everything
Topic: Grow and collision bug in Snek Game
Replies: 9
Views: 3251

Re: Grow and collision bug in Snek Game

Sorry Chilli and albinopapa. I thought that the repo link would automatically adjust to the current connect branch. Also, in the current branch, the program runs and the game is playable in the release mode, but does not in the debug mode. Could you check it up!!! Thank you!
by sheriff40
September 21st, 2017, 6:31 am
Forum: Everything
Topic: Grow and collision bug in Snek Game
Replies: 9
Views: 3251

Re: Grow and collision bug in Snek Game

Guys, these were the problems in my Master Branch. I have already created a WithoutObstacle branch a week ago without these code errors. The WithoutObstacle branch is the actual branch where I face those bugs. Could you guys please check the WihoutObstacle branch. The game runs in that Branch, but t...
by sheriff40
September 20th, 2017, 4:17 pm
Forum: Everything
Topic: Grow and collision bug in Snek Game
Replies: 9
Views: 3251

Re: Grow and collision bug in Snek Game

Yes i tried to run it in debug mode. It does not run at all. Just a white screen. And then i have to stop the program.
by sheriff40
September 20th, 2017, 8:17 am
Forum: Everything
Topic: Grow and collision bug in Snek Game
Replies: 9
Views: 3251

Grow and collision bug in Snek Game

Guys I have almost completed the snek game, but there seems to be a problem, kind of a bug.The snake collides one step ahead before actually colliding with the goal, making the goal respawn in some other location(Note:I had diasbled the Snek.Grow() function to test the collision). Also the grow is n...
by sheriff40
August 27th, 2017, 3:13 pm
Forum: Everything
Topic: Snek Game
Replies: 2
Views: 1537

Snek Game

I have done the snek game upto the tutorial 14a. I tried debugging the code but couldn't get any solution. When i run the program, the screen just goes white. The snek game is not fully complete, but it's upto the point where you can actually move the snake and make it grow. here's the repository: h...
by sheriff40
August 27th, 2017, 3:09 pm
Forum: Everything
Topic: "Can't convert arguments from initilizer to Loc" Snek Game
Replies: 6
Views: 2878

Re: "Can't convert arguments from initilizer to Loc" Snek Ga

Thank you so much guys. Thank you Chilli. I have been making some progress lately.
by sheriff40
August 19th, 2017, 11:33 am
Forum: Everything
Topic: "Can't convert arguments from initilizer to Loc" Snek Game
Replies: 6
Views: 2878

"Can't convert arguments from initilizer to Loc" Snek Game

I made the snake constructor like: Snake::Snake(Loc& loc) { segments[0].Inithead(loc); } Then i made the object: Snake Snek; Now, when i want to initilize the loc i get error like: Snek({2,2}); Cannot convert arguments from initilizer to Loc But when I remove the reference from the defination like: ...