DrawText("How many dices do you want to involve in the fight ?",screenWidth/2-(MeasureTextEx(font,"How many dice do you want to involve in the fight ?",30.0,3.0).x)/2+50,150,30,attacker->color);
DrawText("How many dices do you want to involve in the fight ?",screenWidth/2-(MeasureTextEx(*font,"How many dice do you want to involve in the fight ?",30.0,3.0).x)/2+50,150,30,attacker->color);
DrawTextEx(font,"Defenders lose a soldier",(Vector2){screenWidth/2-MeasureTextEx(font,"Defenders lose a soldier",50.0,3.0).x/2-50,600},50.0,3.0,BLACK);
DrawTextEx(*font,"Defenders lose a soldier",(Vector2){screenWidth/2-MeasureTextEx(*font,"Defenders lose a soldier",50.0,3.0).x/2-50,600},50.0,3.0,BLACK);
}
}
else
else
{
{
DrawTextEx(font,"Attackers lose a soldier",(Vector2){screenWidth/2-MeasureTextEx(font,"Attackers lose a soldier",50.0,3.0).x/2-50,600},50.0,3.0,BLACK);
DrawTextEx(*font,"Attackers lose a soldier",(Vector2){screenWidth/2-MeasureTextEx(*font,"Attackers lose a soldier",50.0,3.0).x/2-50,600},50.0,3.0,BLACK);
}
}
}
}
if(targetNode->soldiers<=0)
if(targetNode->soldiers<=0)
{
{
DrawTextEx(font,"Node has been conquered",(Vector2){screenWidth/2-MeasureTextEx(font,"Node has been conquered",50.0,3.0).x/2-50,700},50.0,3.0,BLACK);
DrawTextEx(*font,"Node has been conquered",(Vector2){screenWidth/2-MeasureTextEx(*font,"Node has been conquered",50.0,3.0).x/2-50,700},50.0,3.0,BLACK);
"This game is an adapted and computerized version of the board game Risk.\nEach player will be given a set of territories (nodes) and a mission to win the game.\nSuccessively, each player will play their turns which happens in 2 phases :\n-\tThe recruitment phase, in which a player is given reinforcements to place on his node, and move existing soldiers, although any given nodes needs at least 1 soldier at all times.\n-\tThe attack phase, in which a player may attack neighboring nodes that he doesnt own. He will have to engage up to 3 soldiers in a fight, which resolves in throwing one die per soldier engage. The outcome will be determined by the head to head comparison of the results from the attacker and the defender.\nA player wins by accomplishing their mission.",
"This game is an adapted and computerized version of the board game Risk.\nEach player will be given a set of territories (nodes) and a mission to win the game.\nSuccessively, each player will play their turns which happens in 2 phases :\n-\tThe recruitment phase, in which a player is given reinforcements to place on his node, and move existing soldiers, although any given nodes needs at least 1 soldier at all times.\n-\tThe attack phase, in which a player may attack neighboring nodes that he doesnt own. He will have to engage up to 3 soldiers in a fight, which resolves in throwing one die per soldier engage. The outcome will be determined by the head to head comparison of the results from the attacker and the defender.\nA player wins by accomplishing their mission.",