Im trying to declare a global scope variable that i want to be accessible in all my other cpp files that in include my header file but am having some trouble.
So i have a Header File "AnimationManger.h":
extern const int NUM_ANIMS;
extern const int ANIM_FRAMES;
and my "AnimationManager.cpp" file containing:
#include "AnimationManager.h"
const int NUM_ANIMS = 8;
const int ANIM_FRAMES = 4;
int animArray[NUM_ANIMS][ANIM_FRAMES];
//other functions
I want to reference my animArray variable in other cpp files that i include AnimationManager.h.
Im new to cpp, having been programming with csharp as a hobby for quite a few years now im having a little trouble fully wrapping my head around how scope works in cpp, since the concept seems quite foreign to me.