|
|
|
@ -139,7 +139,7 @@ void Kraken::drawATentacle() |
|
|
|
m_tentacle.setPosition(m_coords[i]*TILE_WIDTH,m_coords[i+1]*TILE_HEIGHT); |
|
|
|
m_tentacle.setPosition(m_coords[i]*TILE_WIDTH,m_coords[i+1]*TILE_HEIGHT); |
|
|
|
m_level->Getcase()->Getwindow()->draw(m_tentacle);} |
|
|
|
m_level->Getcase()->Getwindow()->draw(m_tentacle);} |
|
|
|
|
|
|
|
|
|
|
|
if (ended){for(int i(0); i<m_coords.size();i++){m_coords[i]=0;}} |
|
|
|
if (ended){for(size_t i(0); i<m_coords.size();i++){m_coords[i]=0;}} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
@ -151,7 +151,7 @@ bool Kraken::isThereCollision(int x, int y) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
bool temp(false); |
|
|
|
bool temp(false); |
|
|
|
for(int i(0);i<m_coords.size()-2;i+=2){ |
|
|
|
for(size_t i(0);i<m_coords.size()-2;i+=2){ |
|
|
|
|
|
|
|
|
|
|
|
if(m_coords[i]==x && m_coords[i+1]==y) |
|
|
|
if(m_coords[i]==x && m_coords[i+1]==y) |
|
|
|
{std::cout<<" touche "; temp=true;} |
|
|
|
{std::cout<<" touche "; temp=true;} |
|
|
|
|