forked from jaildesigner-jailgames/jaildoctors_dilemma
Todavía falla MUCHO con las rampas
This commit is contained in:
@@ -31,11 +31,18 @@ void Debug::update()
|
||||
void Debug::render()
|
||||
{
|
||||
int y = this->y;
|
||||
int w = 0;
|
||||
|
||||
for (auto s : slot)
|
||||
{
|
||||
text->write(x, y, s);
|
||||
w = (std::max(w, (int)s.length()));
|
||||
y += text->getCharacterSize() + 1;
|
||||
if (y > 192 - text->getCharacterSize())
|
||||
{
|
||||
y = this->y;
|
||||
x += w*text->getCharacterSize() + 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user