RenderInfo amb tres estats (off/dalt/baix), temps de joc i persistència; ombra, mono-dígits i easing compartits (v0.14.0)
This commit is contained in:
1 parent
46a578fd86
commit
6f3fafbfff
17 files changed
+376
-97
No files matched your search
@@ -25,8 +25,8 @@ void Notifier::update(int delta_ms) {
|
||||
switch (status_) {
|
||||
case Status::RISING:
|
||||
y_ += SLIDE_SPEED * DT;
|
||||
if (y_ >= 0.0F) {
|
||||
y_ = 0.0F;
|
||||
if (y_ >= static_cast<float>(MARGIN_TOP)) {
|
||||
y_ = static_cast<float>(MARGIN_TOP);
|
||||
status_ = Status::ACTIVE;
|
||||
}
|
||||
break;
|
||||
@@ -37,7 +37,7 @@ void Notifier::update(int delta_ms) {
|
||||
case Status::VANISHING:
|
||||
y_ -= SLIDE_SPEED * DT;
|
||||
if (y_ <= static_cast<float>(-HEIGHT)) {
|
||||
y_ = static_cast<float>(-HEIGHT);
|
||||
y_ = static_cast<float>(-HEIGHT - MARGIN_TOP);
|
||||
status_ = Status::HIDDEN;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user