- Obrer acabat

- Gat acabat
- Abad acabat
This commit is contained in:
2023-09-14 19:49:34 +02:00
parent 556becc51a
commit 5cea9960a2
5 changed files with 8 additions and 3 deletions

BIN
data/abad.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 730 B

BIN
data/gat.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 602 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 645 B

After

Width:  |  Height:  |  Size: 730 B

View File

@@ -111,10 +111,15 @@ namespace actor
else if (act2->pos.z >= act1->pos.z+act1->size.z) { return false; }
else { return false; }
}
int peiv = 0;
void reorder()
{
// [TODO] QUE LA VELOCITAT DE ANIMACIÓ SIGA CONFIGURABLE
//if (peiv==2) {
anim_frame=(anim_frame+1)%4;
// peiv=0;
//} peiv++;
while (dirty)
{
if (first)

View File

@@ -56,7 +56,7 @@ void game::init()
game::setUpdateTicks(64);
//actor::actor_t *hero = actor::create("HERO", {16,32,8}, {8,8,12}, "test.gif", {0,32,20,32}, {-6,38});
actor::actor_t *hero = actor::create("HERO", {16,32,8}, {8,8,12}, "obrer.gif", {0,0,24,32}, {-6,38});
actor::actor_t *hero = actor::create("HERO", {16,32,8}, {8,8,12}, "abad.gif", {0,0,20,35}, {-6,32});
hero->flags = FLAG_HERO | FLAG_PUSHABLE | FLAG_GRAVITY | FLAG_ORIENTABLE | FLAG_ANIMATED;
actor::setDirty(hero, true);