grosses fleures
This commit is contained in:
parent
1a8e68e0b6
commit
f574bd769d
3 changed files with 8 additions and 7 deletions
|
@ -1,6 +1,7 @@
|
|||
#include "NoteTile.hpp"
|
||||
#include "GameData.hpp"
|
||||
#include "NoteSprite.hpp"
|
||||
#include <SFML/Graphics/Texture.hpp>
|
||||
#include <SFML/System/Vector2.hpp>
|
||||
#include <SFML/Window/Window.hpp>
|
||||
#include <memory>
|
||||
|
@ -16,7 +17,10 @@ NoteTile::NoteTile(float play_time, float good_interval, NotePlaceEnum place,
|
|||
note_sprite.sprite.setPosition(sf::Vector2f(
|
||||
NOTE_PLACE_X_POS[place],
|
||||
NOTE_PRESS_HEIGHT - note_sprite.fall_speed * (play_time - current_time)));
|
||||
}
|
||||
|
||||
float s = FLOWER_SIZE / note_sprite.sprite.getTexture().getSize().x;
|
||||
note_sprite.sprite.setScale(sf::Vector2f(s, s));
|
||||
};
|
||||
|
||||
// public
|
||||
void NoteTile::create(float play_time, float good_interval, NotePlaceEnum place,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue