forked from jaildesigner-jailgames/jaildoctors_dilemma
claude arreglant el ending
This commit is contained in:
@@ -457,7 +457,7 @@ void Ending::updateSpriteCovers() {
|
|||||||
}
|
}
|
||||||
// Fase 2: Revelar contenido
|
// Fase 2: Revelar contenido
|
||||||
else {
|
else {
|
||||||
sprite_texts_.at(ti.index).cover_clip_desp = 0;
|
sprite_texts_.at(ti.index).cover_clip_desp = 8;
|
||||||
const float CONTENT_PIXELS = PIXELS_REVEALED - 8.0F;
|
const float CONTENT_PIXELS = PIXELS_REVEALED - 8.0F;
|
||||||
sprite_texts_.at(ti.index).cover_clip_height = std::max(0, static_cast<int>(INITIAL_HEIGHT - CONTENT_PIXELS));
|
sprite_texts_.at(ti.index).cover_clip_height = std::max(0, static_cast<int>(INITIAL_HEIGHT - CONTENT_PIXELS));
|
||||||
sprite_texts_.at(ti.index).cover_sprite->setY(Y_INITIAL + static_cast<int>(CONTENT_PIXELS));
|
sprite_texts_.at(ti.index).cover_sprite->setY(Y_INITIAL + static_cast<int>(CONTENT_PIXELS));
|
||||||
@@ -484,7 +484,7 @@ void Ending::updateSpriteCovers() {
|
|||||||
}
|
}
|
||||||
// Fase 2: Revelar contenido
|
// Fase 2: Revelar contenido
|
||||||
else {
|
else {
|
||||||
sprite_pics_.at(current_scene_).cover_clip_desp = 0;
|
sprite_pics_.at(current_scene_).cover_clip_desp = 8;
|
||||||
const float CONTENT_PIXELS = PIXELS_REVEALED - 8.0F;
|
const float CONTENT_PIXELS = PIXELS_REVEALED - 8.0F;
|
||||||
sprite_pics_.at(current_scene_).cover_clip_height = std::max(0, static_cast<int>(INITIAL_HEIGHT - CONTENT_PIXELS));
|
sprite_pics_.at(current_scene_).cover_clip_height = std::max(0, static_cast<int>(INITIAL_HEIGHT - CONTENT_PIXELS));
|
||||||
sprite_pics_.at(current_scene_).cover_sprite->setY(Y_INITIAL + static_cast<int>(CONTENT_PIXELS));
|
sprite_pics_.at(current_scene_).cover_sprite->setY(Y_INITIAL + static_cast<int>(CONTENT_PIXELS));
|
||||||
|
|||||||
Reference in New Issue
Block a user