| 53 | } |
| 54 | |
| 55 | bool BaseGameLayer::init(GJGameLevel* level) |
| 56 | { |
| 57 | if (!Layer::init()) |
| 58 | return false; |
| 59 | |
| 60 | _instance = this; |
| 61 | _level = level; |
| 62 | |
| 63 | _effectManager = EffectManager::create(); |
| 64 | this->addChild(_effectManager); |
| 65 | |
| 66 | initBatchNodes(); |
| 67 | loadLevel(); |
| 68 | |
| 69 | return true; |
| 70 | } |
| 71 | |
| 72 | void BaseGameLayer::loadLevel() |
| 73 | { |