Question about drawing knight_idle textures twice

In this lecture, we are instructed to draw knight_idle animations twice.

I want to know if we could achieve the same result by initializing knight_idle with {knight} like so:
Texture2D knight_idle{knight};

Would it create any conflicts down the line?

We’re not doing any drawing at that point, just initializing variables with data.

What knight is meant to do is act as the current texture that we’d like to draw, while knight_idle and knight_run are meant to just hold texture data that we copy into knight based on the state of our character.

1 Like

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

Privacy & Terms