OSKOUR
This commit is contained in:
parent
947665d306
commit
31033a7d53
@ -1,6 +1,6 @@
|
|||||||
# General configuration
|
# General configuration
|
||||||
general:
|
general:
|
||||||
maxFPS: 30
|
maxFPS: 90
|
||||||
|
|
||||||
# Players config
|
# Players config
|
||||||
players:
|
players:
|
||||||
@ -54,6 +54,6 @@ projectiles:
|
|||||||
# Grid definition
|
# Grid definition
|
||||||
# You can add more rows, make rows longer and add spaces
|
# You can add more rows, make rows longer and add spaces
|
||||||
grid:
|
grid:
|
||||||
- " "
|
- "AAAAAAAAAA"
|
||||||
- " "
|
- "BBBBBBBBBB"
|
||||||
- "B"
|
- "CCCCCCCCCC"
|
||||||
|
@ -72,7 +72,7 @@ private:
|
|||||||
/*!
|
/*!
|
||||||
* @brief Invader scroll direction - True = right , False = left
|
* @brief Invader scroll direction - True = right , False = left
|
||||||
*/
|
*/
|
||||||
bool direction = true;
|
bool direction;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief list of postion of all missiles shot by the invaders
|
* @brief list of postion of all missiles shot by the invaders
|
||||||
|
@ -42,7 +42,6 @@ void Game::handleScoreSaving(){
|
|||||||
void Game::managedGames() {
|
void Game::managedGames() {
|
||||||
|
|
||||||
playMode = PlayMode::NONE;
|
playMode = PlayMode::NONE;
|
||||||
god.state = GodState::NONE;
|
|
||||||
|
|
||||||
while(playMode!=PlayMode::EXIT){
|
while(playMode!=PlayMode::EXIT){
|
||||||
if(playMode==PlayMode::NONE){
|
if(playMode==PlayMode::NONE){
|
||||||
@ -65,6 +64,7 @@ void Game::initGame(){
|
|||||||
players.clear();
|
players.clear();
|
||||||
|
|
||||||
missiles.clear();
|
missiles.clear();
|
||||||
|
god.state = GodState::NONE;
|
||||||
torpedos.clear();
|
torpedos.clear();
|
||||||
|
|
||||||
if(playMode==PlayMode::SINGLE){
|
if(playMode==PlayMode::SINGLE){
|
||||||
@ -82,6 +82,7 @@ void Game::initGame(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
basePos = Position(200, 0);
|
basePos = Position(200, 0);
|
||||||
|
direction = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ bool Game::manageGod() {
|
|||||||
touched = true;
|
touched = true;
|
||||||
|
|
||||||
/* there are no invaders in the grid anymore, and the one thrown just went out of bound
|
/* there are no invaders in the grid anymore, and the one thrown just went out of bound
|
||||||
* So... return true, the playere wins*/
|
* So... return true, the player wins*/
|
||||||
if(!areThereInvadersLeft())return true;
|
if(!areThereInvadersLeft())return true;
|
||||||
|
|
||||||
// check player collision
|
// check player collision
|
||||||
|
Loading…
Reference in New Issue
Block a user