Search found 3 matches
- July 28th, 2020, 8:32 am
- Forum: Everything
- Topic: Issue in Snake game but not pertaining to the snake
- Replies: 5
- Views: 3690
Re: Issue in Snake game but not pertaining to the snake
Thank you for your reply. I'll just have to practice more to get the nuances down. I always assumed that adding functionality like that to the Game.cpp file was bad, so I strayed away from doing that to keep the code more modular.
- July 28th, 2020, 4:33 am
- Forum: Everything
- Topic: Issue in Snake game but not pertaining to the snake
- Replies: 5
- Views: 3690
Re: Issue in Snake game but not pertaining to the snake
Snake.h includes Food.h and Food.h includes Snake.h. This is called a circular dependency and C++ don't like it. Thanks that seemed to fix the problem. How did you notice something like that? I personally didn't change any headers around, so I'm not sure as to why that happened. I would also like t...
- July 28th, 2020, 1:58 am
- Forum: Everything
- Topic: Issue in Snake game but not pertaining to the snake
- Replies: 5
- Views: 3690
Issue in Snake game but not pertaining to the snake
In terms of the game, I have actually finished it already (minus making the snake move continuously in a direction without pressing the button), and upon making optimizations towards the code, I encountered numerous problems upon building the project that I could just not figure. All I simply did wa...