Is it double or int? No clear description

Ok so I gotta know since this was not addressed in the video.

In the example in the beginning of the exercise he used “double” as the example of an array.

So IE:

double damage[4];

However in the exercise as he is coding, after we have done this he uses the following

int damage[4];

Why is this the case, and why was not this clarified in this exercise?? It is stuff like this that breaks my brain when trying to understand the logic of the code. Things are shown one way and then in the example it is done a completely different way. I would appreciate the clarification :D.

Hi there!

I explained this in more detail in the other thread you posted. But stuff in the slides are just examples, it’s good to focus on the code that’s being written in the project.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms