IM STUCK [C++ BEGINNER]
IM STUCK [C++ BEGINNER]
I've been doing the Tutorial 13 Homework like a lot right now. I understand the purpose of the code and I swear I followed Chili's Homework Solution. But there is something wrong with my code, it just crashes every time I press enter on the title screen. I've done this homework so many times now but, the same issue just keeps happening. Can somebody please help me?
-
- Posts: 1
- Joined: December 4th, 2021, 2:18 pm
Re: IM STUCK [C++ BEGINNER]
I think the poo and the dude might be drawing outside the window.
Check the part of your code that is dealing with collision of boundary.
Check the part of your code that is dealing with collision of boundary.
Re: IM STUCK [C++ BEGINNER]
The poos and the dude works fine. My only issue is when I add the code for the randomly generated goals, it just crashes whenever I press enter on the title screen. Can I ask you to check my code?
-
- Posts: 4373
- Joined: February 28th, 2013, 3:23 am
- Location: Oklahoma, United States
Re: IM STUCK [C++ BEGINNER]
This problem is usually caused by invalid X and Y values in something you're drawing. It's a good idea to start with the debugger to see if you can figure out what went wrong. If you still can't find the issue, you can always post your project either a ZIP/RAR file here or a link to your project's GitHub repository.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com