Début NoteSprite
This commit is contained in:
parent
6e6cfc347d
commit
611ff37653
7 changed files with 47 additions and 3 deletions
|
@ -1,10 +1,16 @@
|
|||
#include "NoteTile.hpp"
|
||||
#include "NoteSprite.hpp"
|
||||
#include <SFML/System/Vector2.hpp>
|
||||
|
||||
std::vector<std::unique_ptr<NoteTile>> NoteTile::existing_tiles;
|
||||
|
||||
// private
|
||||
NoteTile::NoteTile(float play_time, float good_interval, NotePlaceEnum place)
|
||||
: play_time(play_time), good_interval(good_interval), place(place) {
|
||||
: play_time(play_time), good_interval(good_interval), place(place),
|
||||
note_sprite() {
|
||||
// TODO do real note_sprite init, make it fall at good speed far enough...
|
||||
note_sprite.sprite.setPosition(sf::Vector2f(200, 0));
|
||||
note_sprite.fall_speed = 1;
|
||||
NoteTile::existing_tiles.push_back(std::unique_ptr<NoteTile>(this));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue