- Les portes nomes deixen passar en la Z correcta
- Les vores de les portes espenten cap a la porta
This commit is contained in:
@@ -8,23 +8,25 @@
|
||||
|
||||
draw::surface *surf;
|
||||
actor::actor_t *box;
|
||||
int room_w = 0;
|
||||
int room_h = 0;
|
||||
int room_xp = 0;
|
||||
int room_xn = 0;
|
||||
int room_yp = 0;
|
||||
int room_yn = 0;
|
||||
int room_w = 2;
|
||||
int room_h = 2;
|
||||
int room_xp = -1;
|
||||
int room_xn = -1;
|
||||
int room_yp = -1;
|
||||
int room_yn = -1;
|
||||
|
||||
void restart()
|
||||
{
|
||||
actor::clear();
|
||||
room::load(room_w, room_h, room_xp, room_xn, room_yp, room_yn);
|
||||
|
||||
/*
|
||||
box = actor::create("ASCENSOR",{16,32,0}, {8,8,4}, {64,0,32,24}, {0,24});
|
||||
box->flags = FLAG_MOVING;
|
||||
box->movement = MOV_Z;
|
||||
box->mov_push = PUSH_ZP;
|
||||
actor::setDirty(box, true);
|
||||
*/
|
||||
|
||||
box = actor::create("BOX", {32,32,16}, {8,8,8}, {32,0,32,32}, {0,32});
|
||||
box->flags = FLAG_PUSHABLE | FLAG_GRAVITY;
|
||||
@@ -75,7 +77,7 @@ void btn(const char* label, const int x, const int y, int &var, int min, int max
|
||||
{
|
||||
char buffer[100];
|
||||
int result=0;
|
||||
draw::print("ROOM WIDTH:", x, y+3, 15, 0);
|
||||
draw::print(label, x, y+3, 15, 0);
|
||||
result=ui::button(SDL_itoa(var, buffer, 10), x+50, y, 28, 11);
|
||||
if (result)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user