- [FIX] Reduït el bounding box de l'heroi

This commit is contained in:
2024-07-24 19:58:59 +02:00
parent a459ff8a85
commit 7263242bd6
2 changed files with 99 additions and 98 deletions

View File

@@ -7,22 +7,12 @@ door-texture: 0
under-door-texture: 0 under-door-texture: 0
actor{ actor{
name: TAULETA name: KALLAX-A03
bmp: caixes.gif
bmp-rect: 0 64 32 32
bmp-offset: 0 32
pos: 0 0 0
size: 8 8 4
movement: CW
}
actor{
name: BOX05
bmp: altres.gif bmp: altres.gif
bmp-rect: 128 0 20 42 bmp-rect: 72 48 24 27
bmp-offset: -5 46 bmp-offset: 0 31
pos: 0 0 4 pos: 0 16 0
size: 8 8 8 size: 4 8 8
movement: CW movement: CW
} }
@@ -31,17 +21,7 @@ actor{
bmp: altres.gif bmp: altres.gif
bmp-rect: 0 48 24 27 bmp-rect: 0 48 24 27
bmp-offset: 0 31 bmp-offset: 0 31
pos: 0 8 0 pos: 0 32 0
size: 4 8 8
movement: CW
}
actor{
name: KALLAX-A03
bmp: altres.gif
bmp-rect: 72 48 24 27
bmp-offset: 0 31
pos: 0 16 0
size: 4 8 8 size: 4 8 8
movement: CW movement: CW
} }
@@ -80,16 +60,6 @@ actor{
movement: CW movement: CW
} }
actor{
name: BOX01
bmp: caixes.gif
bmp-rect: 128 32 32 32
bmp-offset: 0 32
pos: 16 24 0
size: 8 8 8
movement: CW
}
actor{ actor{
name: KALLAX-A07 name: KALLAX-A07
bmp: altres.gif bmp: altres.gif
@@ -102,6 +72,72 @@ actor{
movement: CW movement: CW
} }
actor{
name: KALLAX-A08
bmp: altres.gif
bmp-rect: 24 48 24 27
bmp-offset: -8 31
pos: 32 0 0
size: 8 4 8
orient: YP
flags: ORIENTABLE
movement: CW
}
actor{
name: KALLAX-A06
bmp: altres.gif
bmp-rect: 72 48 24 27
bmp-offset: -8 31
pos: 24 0 8
size: 8 4 8
orient: YP
flags: ORIENTABLE
movement: CW
}
actor{
name: KALLAX-A09
bmp: altres.gif
bmp-rect: 0 48 24 27
bmp-offset: -8 31
pos: 32 0 8
size: 8 4 8
orient: YP
flags: ORIENTABLE
movement: CW
}
actor{
name: TAULETA
bmp: caixes.gif
bmp-rect: 0 64 32 32
bmp-offset: 0 32
pos: 40 0 0
size: 8 8 4
movement: CW
}
actor{
name: BOX05
bmp: altres.gif
bmp-rect: 128 0 20 42
bmp-offset: -5 46
pos: 40 0 4
size: 8 8 8
movement: CW
}
actor{
name: BOX01
bmp: caixes.gif
bmp-rect: 128 32 32 32
bmp-offset: 0 32
pos: 16 24 0
size: 8 8 8
movement: CW
}
actor{ actor{
name: BOX02 name: BOX02
bmp: caixes.gif bmp: caixes.gif
@@ -114,14 +150,34 @@ actor{
} }
actor{ actor{
name: KALLAX-A08 name: KALLAX-A02
bmp: altres.gif
bmp-rect: 48 48 24 27
bmp-offset: 0 31
pos: 0 16 8
size: 4 8 8
movement: CW
}
actor{
name: KALLAX-A01
bmp: altres.gif bmp: altres.gif
bmp-rect: 24 48 24 27 bmp-rect: 24 48 24 27
bmp-offset: -8 31 bmp-offset: 0 31
pos: 32 0 0 pos: 0 32 8
size: 8 4 8 size: 4 8 8
orient: YP movement: CW
flags: ORIENTABLE }
actor{
name: BOX03
bmp: caixes.gif
bmp-rect: 128 0 32 32
bmp-offset: 0 32
pos: 16 24 8
size: 8 8 2
flags: PUSHABLE
react-push: XP
movement: CW movement: CW
} }
@@ -138,49 +194,6 @@ actor{
movement: X movement: X
} }
actor{
name: KALLAX-A01
bmp: altres.gif
bmp-rect: 24 48 24 27
bmp-offset: 0 31
pos: 0 8 8
size: 4 8 8
movement: CW
}
actor{
name: KALLAX-A02
bmp: altres.gif
bmp-rect: 48 48 24 27
bmp-offset: 0 31
pos: 0 16 8
size: 4 8 8
movement: CW
}
actor{
name: BOX03
bmp: caixes.gif
bmp-rect: 128 0 32 32
bmp-offset: 0 32
pos: 16 24 8
size: 8 8 8
react-push: XP
movement: CW
}
actor{
name: KALLAX-A06
bmp: altres.gif
bmp-rect: 72 48 24 27
bmp-offset: -8 31
pos: 24 0 8
size: 8 4 8
orient: YP
flags: ORIENTABLE
movement: CW
}
actor{ actor{
name: BOX04 name: BOX04
bmp: caixes.gif bmp: caixes.gif
@@ -193,15 +206,3 @@ actor{
react-push: XP react-push: XP
movement: CW movement: CW
} }
actor{
name: KALLAX-A09
bmp: altres.gif
bmp-rect: 0 48 24 27
bmp-offset: -8 31
pos: 32 0 8
size: 8 4 8
orient: YP
flags: ORIENTABLE
movement: CW
}

View File

@@ -1345,7 +1345,7 @@ namespace actor
void init(const bool complete) void init(const bool complete)
{ {
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}, {6,6,12}, "test.gif", {0,32,20,32}, {-6,38});
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);