aligned wave
This commit is contained in:
parent
d9f7b26d6a
commit
e6234333a6
3 changed files with 2 additions and 2 deletions
|
@ -207,7 +207,7 @@ void Combat::doMahWaves(bool p) {
|
|||
Wave* w = new Wave(p);
|
||||
//if(!p) w->setPosition(anterior,500);
|
||||
//else w->setPosition(512-512*anterior,500);
|
||||
w->setPosition(anterior,W_HEIGHT/2);
|
||||
w->setPosition(anterior,W_HEIGHT/2 + 17);
|
||||
if(i<notes.size()) {
|
||||
if(!p) anterior += 176*notes[i+1];
|
||||
else anterior -= 176*notes[i+1];
|
||||
|
|
|
@ -11,7 +11,7 @@ Wave::Wave(bool dir){
|
|||
direction = dir;
|
||||
ASSERT(texture.loadFromFile(spriteFile));
|
||||
setTexture(texture);
|
||||
setOrigin(texture.getSize().x/2,texture.getSize().y/2);
|
||||
setOrigin(texture.getSize().x/2,texture.getSize().y - 1);
|
||||
// sf::IntRect rect = sf::IntRect(0, 0, texture.getSize().x, texture.getSize().y);
|
||||
// setTextureRect(rect);
|
||||
}
|
||||
|
|
Binary file not shown.
Reference in a new issue