- Edició de piso i pareds

- Nous pisos i pareds en els GIFs
This commit is contained in:
2023-06-07 14:39:36 +02:00
parent a9e2b00c4d
commit 1b1f6751fe
5 changed files with 16 additions and 4 deletions

View File

@@ -14,11 +14,13 @@ int room_xn = -1;
int room_yp = -1;
int room_yn = -1;
int room_color = 9;
int room_floor = 0;
int room_walls = 0;
void restart()
{
actor::clear();
room::load(room_w, room_h, room_xp, room_xn, room_yp, room_yn, room_color);
room::load(room_w, room_h, room_xp, room_xn, room_yp, room_yn, room_color, room_floor, room_walls);
/*
box = actor::create("ASCENSOR",{16,32,0}, {8,8,4}, {64,0,32,24}, {0,24});
@@ -45,7 +47,7 @@ void game::init()
{
draw::init("The Pool", 420, 240, 3);
room::init();
//room::init();
surf = draw::loadSurface("test.gif");
draw::setSource(surf);
draw::loadPalette("test.gif");
@@ -117,6 +119,8 @@ bool game::loop()
btn("DOOR YP:", 330, 80, room_yp, -1, 5);
btn("DOOR YN:", 330, 95, room_yn, -1, 5);
btn("COLOR:", 330, 110, room_color, 5, 11);
btn("FLOOR:", 330, 125, room_floor, 0, 5);
btn("WALLS:", 330, 140, room_walls, 0, 5);
draw::render();