예제 #1
0
void	game::gamecore::show_ui(sdl::createwin& ecran, game::player& player)
{
	sdl::color	white(255,255,255);
	std::ostringstream oss;
	oss << "Score : " << player.get_score() << "     Vie Restante : " << player.get_vie();
	std::string result = oss.str();
	ecran.refresh_zone(0,0,700,80);
	sdl::create_text	scoreTmp(result,"HungerGames.ttf",white.getcolor(),0,0,ecran.getsurface());
}
예제 #2
0
void	game::player::change_score(sdl::createwin& ecran, int	s)
{
	score =  score + s;
	ecran.getsurface();

}