I seem to be screwing my project up more and more with everything I try....so hopefully somebody has had a similar problem and can help me out. I've search around Google but can't seem to find much.
Anyway, I have the following files/structure:
LevelLayer.h:
@interface LevelLayer : Layer {
....
@end
LevelLayer.m (implements above and has functionality that is the same for all levels)
Level1Layer.h:
#import "cocos2d.h"
#import "LevelLayer.h"
@interface Level1Layer : LevelLayer {
...
@end
Level1Layer.m (implements above by creating the specific levels/setting up variables etc.).
When I try to compile I get the following error:
error: cannot find interface declaration for "LevelLayer", superclass of 'Level1Layer'
Been trying to figure this out for a few hours now and not getting anywhere.
I have a similar setup with some other things that is giving me the same problem, so I'm guessing I'm screwing something stupid up....
Thanks a lot to anybody who can help...