Medaka
Getting There
Hello, I can't seem to understand how these work. I mean, I kind of get it.
> Create CPP and header files (http://image.prntscr.com/image/be62303e5cbd4418a99467e3679a9a95.png)
> Include the header files in the source files(game.h included in game.cpp, entity.h included in entity.cpp, etc..)
But I'm very confused because on my game_s struct object, if I don't do: static game_s game; instead of extern game_s game; it won't work. I really need help understanding how this works, thanks.
> Create CPP and header files (http://image.prntscr.com/image/be62303e5cbd4418a99467e3679a9a95.png)
> Include the header files in the source files(game.h included in game.cpp, entity.h included in entity.cpp, etc..)
But I'm very confused because on my game_s struct object, if I don't do: static game_s game; instead of extern game_s game; it won't work. I really need help understanding how this works, thanks.