- Edició de piso i pareds
- Nous pisos i pareds en els GIFs
This commit is contained in:
@@ -25,15 +25,23 @@ namespace room
|
||||
|
||||
void init()
|
||||
{
|
||||
if (floor_surf) draw::freeSurface(floor_surf);
|
||||
if (walls_surf) draw::freeSurface(walls_surf);
|
||||
if (doors_surf) draw::freeSurface(doors_surf);
|
||||
if (aux_surf) draw::freeSurface(aux_surf);
|
||||
|
||||
floor_surf = draw::loadSurface("floor.gif");
|
||||
walls_surf = draw::loadSurface("walls.gif");
|
||||
doors_surf = draw::loadSurface("doors.gif");
|
||||
aux_surf = draw::loadSurface("roomaux.gif");
|
||||
}
|
||||
|
||||
void load(int x, int y, int8_t xp, int8_t xn, int8_t yp, int8_t yn, uint8_t col)
|
||||
void load(int x, int y, int8_t xp, int8_t xn, int8_t yp, int8_t yn, uint8_t col, uint8_t floor, uint8_t walls)
|
||||
{
|
||||
init();
|
||||
color = col;
|
||||
floor_type = floor;
|
||||
walls_type = walls;
|
||||
size = {(x+1)*2,(y+1)*2,3};
|
||||
tmin = {3-x,3-y,0};
|
||||
tmax = {4+x,4+y,3};
|
||||
|
||||
Reference in New Issue
Block a user