| 149 | } |
| 150 | |
| 151 | void MenuGameLayer::resetPlayer(bool touched) |
| 152 | { |
| 153 | float x = touched ? -600.0f : -300.0f; |
| 154 | player->setPosition({x, 93.f}); |
| 155 | auto mainColor = GameToolbox::randomColor3B(); |
| 156 | auto secondaryColor = GameToolbox::randomColor3B(); |
| 157 | player->setMainColor(mainColor); |
| 158 | player->setSecondaryColor(secondaryColor); |
| 159 | } |
| 160 | |
| 161 | void MenuGameLayer::processBackground(float delta) { |
| 162 | float xpos = bgSprites->getPositionX(); |
no test coverage detected