I am trying to work on a new game project where I will include multiple levels. I was reading this question (Sprite Kit - Defining the variables for multiple scenes) about the best way to do multiples scenes with as little duplicate code as possible. The answer of course is subclassing.
So say I create my "baseScene" which is a subclass of SKScene. Here, as suggested, I should put all the relevant code (player, objects, collisions bit masks, touches began functions etc) that will be shared across all subclass level scenes. I used the usual did moveToView function in baseScene to add the content and it works perfect across multiple scenes (level1Scene, level2Scene etc) that are all subclasses of baseScene. Same goes for touches began functions and so on, so no problem with that.
My issue now however is that in my "level1Scene" I cannot for the life of me figure out how to add stuff that's on top of what is in baseScene such as level 1 enemies, obstacles or backgrounds. I cannot use didMoveToView since it's an override function and will remove everything I have added in my baseScene superclass.
I would appreciate any support and my apologises if this is a basic and probably stupid question but I am fairly new to swift, especially scene subclassing.