问题
My question is very simple. Can we make an array of sprites or images in SFML. For example:
int myArray[] = {1, 2, 3};
Consider index number one, two and three are three different images.
How can we do it? Can anyone explain with some code example?
回答1:
Yes you can!
sf::Sprite array[10] = { ... }
来源:https://stackoverflow.com/questions/20932939/can-we-make-arrays-or-multidimensional-arrays-of-sprites-in-sfml-2-1-c