|
|
|
@ -35,7 +35,6 @@ void Player::update(float dTime, std::vector<Wall> &walls, std::vector<Coin>& co |
|
|
|
|
wall.jumped = true; |
|
|
|
|
auto e = new WallJumpEvent; |
|
|
|
|
e->time = Game::instance->eTime; |
|
|
|
|
e->player = this; |
|
|
|
|
e->wallHeight = wall.size.height(); |
|
|
|
|
Game::eventQueue->submitEvent(e); |
|
|
|
|
} else { |
|
|
|
@ -43,7 +42,6 @@ void Player::update(float dTime, std::vector<Wall> &walls, std::vector<Coin>& co |
|
|
|
|
auto e = new WallCrashEvent; |
|
|
|
|
e->time = Game::instance->eTime; |
|
|
|
|
e->wallHeight = wall.size.height(); |
|
|
|
|
e->player = this; |
|
|
|
|
Game::eventQueue->submitEvent(e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -56,7 +54,6 @@ void Player::update(float dTime, std::vector<Wall> &walls, std::vector<Coin>& co |
|
|
|
|
coin.collected = true; |
|
|
|
|
auto e = new CoinCollectEvent; |
|
|
|
|
e->time = Game::instance->eTime; |
|
|
|
|
e->player = this; |
|
|
|
|
e->value = coin.value; |
|
|
|
|
Game::eventQueue->submitEvent(e); |
|
|
|
|
} |
|
|
|
|