I want to create a list of levels with a score required to reach that level. But I'm not sure how best to do it.
For example I tried an enum like this:
enum xpLevels {
case 1 = 0...50
case 2 = 51...100
case 3 = 101...200
}
But this gives me errors saying: "Consecutive declarations on a line must be separated by ';'"
And I'm quite sure I haven't structured this right. Is an enum even the right thing to be using for this? I'd appreciate any help to point me in the right direction.
[50, 100, 200]will be enough to represent that. Why do you think enums will help?