Page 1 of 1

Homework 5 - Beginner C++

Posted: May 17th, 2019, 8:26 pm
by KD1535
The code in the homework 5 video is not the same as the parent video - tutorial 5. There are multiple variables and if statements missing and changes to the header files in the homework 5 video, but Chilli is still able to execute the code in the video. Is there something I am missing or should I just scratch all the code I have done up until this point and just copy the code in homework 5 video?

Re: Homework 5 - Beginner C++

Posted: May 19th, 2019, 4:30 pm
by KD1535
Update: I ended up scraping all the code that led up to this point and copied chili's code. From here I compared the new code and the old code and spent my time understanding how the new code was still working despite all the changes.

Not sure if this was the point of the homework, but it honestly helped me learn alot more about what we were coding.

Re: Homework 5 - Beginner C++

Posted: May 19th, 2019, 4:55 pm
by Yumtard
at the end of episode 5, chili gives you homework.
In the homework video he then shows his solution to the homework so obviously the code will be a bit different

Re: Homework 5 - Beginner C++

Posted: May 19th, 2019, 9:47 pm
by KD1535
EDIT - Double posted -

Re: Homework 5 - Beginner C++

Posted: May 19th, 2019, 9:48 pm
by KD1535
at the end of episode 5, chili gives you homework.
I understand that if you even read my post.
In the homework video he then shows his solution to the homework so obviously the code will be a bit different
Not sure when the last time you watched those particular videos, but if you go back you will notice the code is completely different, not just a bit different. The homework solution video's code does not contain anything we implemented from the past videos.
[/quote]

Re: Homework 5 - Beginner C++

Posted: May 19th, 2019, 10:19 pm
by DEM0N194
Yeah, I'm pretty sure that's because it was simply a separate thing. A separate homework task you should try to do on your own using the concepts you've learned in the previous videos.

Re: Homework 5 - Beginner C++

Posted: May 20th, 2019, 3:37 am
by albinopapa
Yeah, after going back and watching and reading the wiki, it says nothing aside from "Draw two targeting boxes, one controlled with the arrow keys and one stationary, and have the color of the mobile targeting box change whenever the targeting boxes overlap."

The targeting boxes should already be part of the code from the tutorials, the controls should also be part of the tutorial code. The changing colors should be the part and the stationary box you need to figure out using the conditional variables and if statements, though it sounds like you already went through the homework.

It is a bit confusing, but chili is definitely a firm believer in making you think for yourself once he gives you the tools and teaches you how they are used.

Re: Homework 5 - Beginner C++

Posted: May 20th, 2019, 7:19 am
by Savnisharma
Excellent post..I got valuable information here..Thanks for such an excellent thread! Keep up the great work!

Re: Homework 5 - Beginner C++

Posted: August 15th, 2020, 8:51 am
by Bradlitt
I got valuable information here Hungry Shark World Mod Apk

Re: Homework 5 - Beginner C++

Posted: September 3rd, 2020, 11:43 am
by Sang15512
Great Information.Thanks for sharing