- Augmentat el nom dels actor a 16 caràcters

- Augmentat els flags dels actors a 16 bits
- Afegit flag NOEDITOR per a ocultar les portes del editor
- Per ara eixim amb ESC, mes fàcil
This commit is contained in:
2023-09-21 07:58:34 +02:00
parent ea10524b10
commit 2f1ae09676
4 changed files with 17 additions and 11 deletions

View File

@@ -103,6 +103,8 @@ int section = 0;
bool game::loop()
{
if (input::keyDown(SDL_SCANCODE_ESCAPE)) return false;
actor::update(actor::getFirst());
actor::reorder();
@@ -145,12 +147,14 @@ bool game::loop()
int line = 0;
actor::actor_t *act = actor::getFirst();
while (act) {
if (act==actor::getSelected()) {
draw::color(TEAL);
draw::fillrect(330, 40+line*8, 50, 8);
if ((act->flags&FLAG_NOEDITOR)!=FLAG_NOEDITOR) {
if (act==actor::getSelected()) {
draw::color(TEAL);
draw::fillrect(330, 40+line*8, 50, 8);
}
draw::print(act->name, 330, 40+line*8, WHITE, BLACK);
line++;
}
draw::print(act->name, 330, 40+line*8, WHITE, BLACK);
line++;
act = act->next;
}
break;