Hi,
I have the following code:
if(Globais::dificuldade==1){
spiderMoveDuration = 16.0f;
}
if(Globais::dificuldade==2){
spiderMoveDuration = 8.0f;
}
if(Globais::dificuldade==3){
spiderMoveDuration = 4.0f;
}
But I want to change the int numbers 1,2,3 to constant values in a external class
I’m new to c**, and I want to define constant values in a external class, how is the best way to do that in c**;