- [NEW] Els objectes especials tenen brilli brilli
This commit is contained in:
@@ -22,6 +22,8 @@ namespace actor
|
||||
actor_t *selected = nullptr;
|
||||
actor_t *picked = nullptr;
|
||||
static bool room_changed = false;
|
||||
int brilli_brilli=0;
|
||||
draw::surface *brilli;
|
||||
|
||||
int current_tag = 0;
|
||||
|
||||
@@ -975,6 +977,8 @@ namespace actor
|
||||
{
|
||||
if (!act) return;
|
||||
|
||||
if (act==first) { brilli_brilli=(brilli_brilli+1)&0x7; }
|
||||
|
||||
actor_t *next = act->next;
|
||||
|
||||
// Actualitzem el frame de l'animació (si no te el flag de animat, no afectarà per a res)
|
||||
@@ -1072,7 +1076,14 @@ namespace actor
|
||||
draw::stencil::set(act->tag);
|
||||
draw::draw(x, y, act->bmp_rect.w, act->bmp_rect.h, act->bmp_rect.x+ao, act->bmp_rect.y+oo, flip);
|
||||
draw::swapcol(1, room::getColor(0)); // Tornem al color per defecte
|
||||
if (act->flags&FLAG_SPECIAL)
|
||||
{
|
||||
draw::setSource(brilli);
|
||||
const int dx = (act->bmp_rect.w-22)>>1;
|
||||
draw::draw(x+dx, y, 22, 24, brilli_brilli*22, 96, DRAW_FLIP_NONE);
|
||||
}
|
||||
draw::popSource();
|
||||
|
||||
if (debug::isEnabled(DEBUG_ACTOR_POS))
|
||||
{
|
||||
char tmp[100];
|
||||
@@ -1346,6 +1357,7 @@ namespace actor
|
||||
skills = SKILL_NONE;
|
||||
parts = PART_NONE;
|
||||
for (int i=0; i<100; ++i) boosters_collected[i] = false;
|
||||
brilli = draw::getSurface("objectes.gif");
|
||||
} else {
|
||||
hero->pos = first_pos;
|
||||
hero->orient = first_orient;
|
||||
|
||||
Reference in New Issue
Block a user