- Obrer acabat
- Gat acabat - Abad acabat
This commit is contained in:
BIN
data/abad.gif
Normal file
BIN
data/abad.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 730 B |
BIN
data/gat.gif
Normal file
BIN
data/gat.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 602 B |
BIN
data/obrer.gif
BIN
data/obrer.gif
Binary file not shown.
|
Before Width: | Height: | Size: 645 B After Width: | Height: | Size: 730 B |
@@ -111,10 +111,15 @@ namespace actor
|
|||||||
else if (act2->pos.z >= act1->pos.z+act1->size.z) { return false; }
|
else if (act2->pos.z >= act1->pos.z+act1->size.z) { return false; }
|
||||||
else { return false; }
|
else { return false; }
|
||||||
}
|
}
|
||||||
|
int peiv = 0;
|
||||||
void reorder()
|
void reorder()
|
||||||
{
|
{
|
||||||
|
// [TODO] QUE LA VELOCITAT DE ANIMACIÓ SIGA CONFIGURABLE
|
||||||
|
//if (peiv==2) {
|
||||||
anim_frame=(anim_frame+1)%4;
|
anim_frame=(anim_frame+1)%4;
|
||||||
|
// peiv=0;
|
||||||
|
//} peiv++;
|
||||||
|
|
||||||
while (dirty)
|
while (dirty)
|
||||||
{
|
{
|
||||||
if (first)
|
if (first)
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ void game::init()
|
|||||||
game::setUpdateTicks(64);
|
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}, "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;
|
hero->flags = FLAG_HERO | FLAG_PUSHABLE | FLAG_GRAVITY | FLAG_ORIENTABLE | FLAG_ANIMATED;
|
||||||
actor::setDirty(hero, true);
|
actor::setDirty(hero, true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user