- Afegit nom als actors
- [BUG] Els actors es movien magicament (push no definit) - Clear de actors - Comencem amb l'editor
This commit is contained in:
@@ -10,7 +10,7 @@ namespace room
|
||||
static vec3_t min = {0,0,0};
|
||||
static vec3_t max = {56,56,56};
|
||||
|
||||
static uint8_t doors = 15; //OOR_XP /*| DOOR_YP*/ ;
|
||||
static uint8_t doors = DOOR_XP /*| DOOR_YP*/ ;
|
||||
static uint8_t door_height[4];
|
||||
|
||||
void load(int x, int y)
|
||||
@@ -27,20 +27,20 @@ namespace room
|
||||
|
||||
if (doors & DOOR_YP)
|
||||
{
|
||||
actor::actor_t *act = actor::create({24,(tmax.y+1)*8,0}, {8,8,(door_height[2])*4}, {0,1,32,15}, {0,15+door_height[2]*8});
|
||||
actor::actor_t *act = actor::create("DOOR_YP1", {24,(tmax.y+1)*8,0}, {8,8,(door_height[2])*4}, {0,1,32,15}, {0,15+door_height[2]*8});
|
||||
act->flags = FLAG_NONE;
|
||||
actor::setDirty(act, true);
|
||||
act = actor::create({32,(tmax.y+1)*8,0}, {8,8,(door_height[2])*4}, {0,1,32,15}, {0,15+door_height[2]*8});
|
||||
act = actor::create("DOOR_YP2", {32,(tmax.y+1)*8,0}, {8,8,(door_height[2])*4}, {0,1,32,15}, {0,15+door_height[2]*8});
|
||||
act->flags = FLAG_NONE;
|
||||
actor::setDirty(act, true);
|
||||
}
|
||||
|
||||
if (doors & DOOR_XP)
|
||||
{
|
||||
actor::actor_t *act = actor::create({(tmax.x+1)*8,24,0}, {8,8,(door_height[0])*4}, {0,1,32,15}, {0,15+door_height[0]*8});
|
||||
actor::actor_t *act = actor::create("DOOR_XP1", {(tmax.x+1)*8,24,0}, {8,8,(door_height[0])*4}, {0,1,32,15}, {0,15+door_height[0]*8});
|
||||
act->flags = FLAG_NONE;
|
||||
actor::setDirty(act, true);
|
||||
act = actor::create({(tmax.x+1)*8,32,0}, {8,8,(door_height[0])*4}, {0,1,32,15}, {0,15+door_height[0]*8});
|
||||
act = actor::create("DOOR_XP2", {(tmax.x+1)*8,32,0}, {8,8,(door_height[0])*4}, {0,1,32,15}, {0,15+door_height[0]*8});
|
||||
act->flags = FLAG_NONE;
|
||||
actor::setDirty(act, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user