Re: [dcrpg-devel] DC RPG
Status: Inactive
Brought to you by:
falkkin
|
From: Miles R. <reu...@ya...> - 2002-02-05 18:14:25
|
No prob! Hehe, it seems I did my math incorrectly as well... it would be
32bits or 4bytes as you say, not my previous 16bits or 2 bytes. Colin wants
to aim for 16bits if we don't use any of that extra space that 7 or 8bit IDs
will give (128 or 256 IDs).
I guess I should rewrite it as:
struct tile16
{
unsigned int walkable : 1; //0 not walk, 1, walkable
unsigned int front : 1; //0 back, 1 front
unsigned int monster_info : 3; //monster id(s)
unsigned int event_id : 3; //event id *
unsigned int fg_sprite_id : 4; //foreground sprite id *
unsigned int bg_sprite_id : 4; //background sprite id *
} tile16;
struct tile32
{
unsigned int walkable : 1; //0 not walk, 1, walkable
unsigned int front : 1; //0 back, 1 front
unsigned int monster_info : 7; //monster id(s)
unsigned int event_id : 7; //event id *
unsigned int fg_sprite_id : 8; //foreground sprite id *
unsigned int bg_sprite_id : 8; //background sprite id *
} tile32;
-Miles Raymond EML: m_r...@bi...
AIM: Killer2Ray ICQ: 13217756 IRC: Killer2
WWW: http://www.bigfoot.com/~m_rayman
----- Original Message -----
From: "Dirk Leser" <dir...@gm...>
To: "Miles Raymond" <reu...@ya...>
Sent: Tuesday, February 05, 2002 11:22 AM
Subject: Re: [dcrpg-devel] DC RPG
> Sorry I ignored the ':' this makes 4 Bytes instead of my 24 Bytes
> Apologies...
|