- Ja es pot moure entre habitacions (falten dalt i baix)
This commit is contained in:
@@ -588,7 +588,8 @@ namespace actor
|
|||||||
// Si ja havem atravesat la porta, ens movem a la porta de l'altra costat
|
// Si ja havem atravesat la porta, ens movem a la porta de l'altra costat
|
||||||
// [TODO] que es moga a l'habitació que toca!!!
|
// [TODO] que es moga a l'habitació que toca!!!
|
||||||
if (act->pos.x<min.x-4) {
|
if (act->pos.x<min.x-4) {
|
||||||
act->pos.x = max.x;
|
room::load(room::getExit(XN));
|
||||||
|
act->pos.x = room::getMax().x+3;
|
||||||
act->pos.z = room::getDoor(XP)*4;
|
act->pos.z = room::getDoor(XP)*4;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -613,7 +614,8 @@ namespace actor
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (act->pos.x>max.x+4) {
|
if (act->pos.x>max.x+4) {
|
||||||
act->pos.x = min.x;
|
room::load(room::getExit(XP));
|
||||||
|
act->pos.x = room::getMin().x-3;
|
||||||
act->pos.z = room::getDoor(XN)*4;
|
act->pos.z = room::getDoor(XN)*4;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -638,7 +640,8 @@ namespace actor
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (act->pos.y<min.y-4) {
|
if (act->pos.y<min.y-4) {
|
||||||
act->pos.y = max.y;
|
room::load(room::getExit(YN));
|
||||||
|
act->pos.y = room::getMax().y+3;
|
||||||
act->pos.z = room::getDoor(YP)*4;
|
act->pos.z = room::getDoor(YP)*4;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -663,7 +666,8 @@ namespace actor
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (act->pos.y>max.y+4) {
|
if (act->pos.y>max.y+4) {
|
||||||
act->pos.y = min.y;
|
room::load(room::getExit(YP));
|
||||||
|
act->pos.y = room::getMin().y-3;
|
||||||
act->pos.z = room::getDoor(YN)*4;
|
act->pos.z = room::getDoor(YN)*4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -536,23 +536,23 @@ switch (section)
|
|||||||
line += 10;
|
line += 10;
|
||||||
ui::label("YP", 2, line, 48, 11);
|
ui::label("YP", 2, line, 48, 11);
|
||||||
changed |= btn_small(48, line, room::editor::refExit(YP), -1, 64, 36);
|
changed |= btn_small(48, line, room::editor::refExit(YP), -1, 64, 36);
|
||||||
ui::button("GO", 84, line, 13, 11);
|
if (ui::button("GO", 84, line, 13, 11)) room::load(room::editor::refExit(YP));
|
||||||
line += 10;
|
line += 10;
|
||||||
ui::label("XP", 2, line, 48, 11);
|
ui::label("XP", 2, line, 48, 11);
|
||||||
changed |= btn_small(48, line, room::editor::refExit(XP), -1, 64, 36);
|
changed |= btn_small(48, line, room::editor::refExit(XP), -1, 64, 36);
|
||||||
ui::button("GO", 84, line, 13, 11);
|
if (ui::button("GO", 84, line, 13, 11)) room::load(room::editor::refExit(XP));
|
||||||
line += 10;
|
line += 10;
|
||||||
ui::label("YN", 2, line, 48, 11);
|
ui::label("YN", 2, line, 48, 11);
|
||||||
changed |= btn_small(48, line, room::editor::refExit(YN), -1, 64, 36);
|
changed |= btn_small(48, line, room::editor::refExit(YN), -1, 64, 36);
|
||||||
ui::button("GO", 84, line, 13, 11);
|
if (ui::button("GO", 84, line, 13, 11)) room::load(room::editor::refExit(YN));
|
||||||
line += 10;
|
line += 10;
|
||||||
ui::label("ZP", 2, line, 48, 11);
|
ui::label("ZP", 2, line, 48, 11);
|
||||||
changed |= btn_small(48, line, room::editor::refExit(ZP), -1, 64, 36);
|
changed |= btn_small(48, line, room::editor::refExit(ZP), -1, 64, 36);
|
||||||
ui::button("GO", 84, line, 13, 11);
|
if (ui::button("GO", 84, line, 13, 11)) room::load(room::editor::refExit(ZP));
|
||||||
line += 10;
|
line += 10;
|
||||||
ui::label("ZN", 2, line, 48, 11);
|
ui::label("ZN", 2, line, 48, 11);
|
||||||
changed |= btn_small(48, line, room::editor::refExit(ZN), -1, 64, 36);
|
changed |= btn_small(48, line, room::editor::refExit(ZN), -1, 64, 36);
|
||||||
ui::button("GO", 84, line, 13, 11);
|
if (ui::button("GO", 84, line, 13, 11)) room::load(room::editor::refExit(ZN));
|
||||||
line += 10;
|
line += 10;
|
||||||
|
|
||||||
/*changed |= btn("COLOR:", 10, 140, room::editor::refColor(), 5, 11);
|
/*changed |= btn("COLOR:", 10, 140, room::editor::refColor(), 5, 11);
|
||||||
|
|||||||
Reference in New Issue
Block a user