- Es pot canviar el color de l'habitació

This commit is contained in:
2023-06-06 19:46:57 +02:00
parent e75eae0c7e
commit f21029f973
4 changed files with 11 additions and 3 deletions

View File

@@ -13,11 +13,12 @@ int room_xp = -1;
int room_xn = -1;
int room_yp = -1;
int room_yn = -1;
int room_color = 5;
void restart()
{
actor::clear();
room::load(room_w, room_h, room_xp, room_xn, room_yp, room_yn);
room::load(room_w, room_h, room_xp, room_xn, room_yp, room_yn, room_color);
/*
box = actor::create("ASCENSOR",{16,32,0}, {8,8,4}, {64,0,32,24}, {0,24});
@@ -113,6 +114,7 @@ bool game::loop()
btn("DOOR XN:", 330, 65, room_xn, -1, 5);
btn("DOOR YP:", 330, 80, room_yp, -1, 5);
btn("DOOR YN:", 330, 95, room_yn, -1, 5);
btn("COLOR:", 330, 110, room_color, 3, 7);
draw::render();