Skip to content

Instantly share code, notes, and snippets.

@phrohdoh
Created April 28, 2020 14:07
Show Gist options
  • Save phrohdoh/71e3296bc83179d9ae16c73e41d6db8a to your computer and use it in GitHub Desktop.
Save phrohdoh/71e3296bc83179d9ae16c73e41d6db8a to your computer and use it in GitHub Desktop.
[WIP] Age of Empires - Annotated SLP
// ---------------------------------- slp header -------------------------------
/* file version 0 0x00 */ 0x32, 0x2e, 0x30, 0x4e,
/* shape count 4 0x04 */ 0x00, 0x00, 0x00, 0x00,
/* comment 8 0x08 */ 0x74, 0x65, 0x73, 0x74,
/* 12 0x0C */ 0x20, 0x73, 0x6C, 0x70,
/* 16 0x10 */ 0x20, 0x63, 0x6F, 0x6D,
/* 20 0x14 */ 0x6D, 0x65, 0x6E, 0x74,
/* 24 0x18 */ 0x2C, 0x20, 0x62, 0x6C,
/* 28 0x1C */ 0x61, 0x68, 0x2E, 0x2E,
// ---------------------------------- shape 1 header ---------------------------
/* shape data offsets 32 0x20 */ 0x80, 0x00, 0x00, 0x00,
/* shape outline offset 36 0x24 */ 0x00, 0x00, 0x00, 0x00,
/* palette offset 40 0x28 */ 0x00, 0x00, 0x00, 0x00,
/* properties 44 0x2C */ 0x00, 0x00, 0x00, 0x00,
/* width 48 0x30 */ 0x01, 0x00, 0x00, 0x00,
/* height 52 0x34 */ 0x01, 0x00, 0x00, 0x00,
/* hotspot x 56 0x38 */ 0x00, 0x00, 0x00, 0x00,
/* hotspot y 60 0x3C */ 0x00, 0x00, 0x00, 0x00,
// ---------------------------------- shape 2 header ---------------------------
/* shape data offsets 64 0x40 */ 0x84, 0x00, 0x00, 0x00,
/* shape outline offset 68 0x44 */ 0x00, 0x00, 0x00, 0x00,
/* palette offset 72 0x48 */ 0x00, 0x00, 0x00, 0x00,
/* properties 76 0x4C */ 0x00, 0x00, 0x00, 0x00,
/* width 80 0x50 */ 0x01, 0x00, 0x00, 0x00,
/* height 84 0x54 */ 0x01, 0x00, 0x00, 0x00,
/* hotspot x 88 0x58 */ 0x00, 0x00, 0x00, 0x00,
/* hotspot y 92 0x5C */ 0x00, 0x00, 0x00, 0x00,
// ---------------------------------- shape 3 header ---------------------------
/* shape data offsets 96 0x60 */ 0x88, 0x00, 0x00, 0x00,
/* shape outline offset 100 0x64 */ 0x00, 0x00, 0x00, 0x00,
/* palette offset 104 0x68 */ 0x00, 0x00, 0x00, 0x00,
/* properties 108 0x6C */ 0x00, 0x00, 0x00, 0x00,
/* width 112 0x70 */ 0x01, 0x00, 0x00, 0x00,
/* height 116 0x74 */ 0x01, 0x00, 0x00, 0x00,
/* hotspot x 120 0x78 */ 0x00, 0x00, 0x00, 0x00,
/* hotspot y 124 0x7C */ 0x00, 0x00, 0x00, 0x00,
// ---------------------------------- shape 1 data offsets ---------------------
/* ptr to row 1 data 128 0x80 */ 0x8c, 0x00, 0x00, 0x00,
// ---------------------------------- shape 2 data offsets ---------------------
/* ptr to row 1 data 132 0x84 */ 0x90, 0x00, 0x00, 0x00,
// ---------------------------------- shape 3 data offsets ---------------------
/* ptr to row 1 data 136 0x88 */ 0x94, 0x00, 0x00, 0x00,
// ---------------------------------- shape 1 data -----------------------------
/* 140 0x8c */ 0x04, 0x00, 0x0F, 0x00, // draw 1px colored palette[0]
// ---------------------------------- shape 2 data -----------------------------
/* 144 0x90 */ 0x04, 0x01, 0x0F, 0x00, // draw 1px colored palette[1]
// ---------------------------------- shape 3 data -----------------------------
/* 148 0x94 */ 0x04, 0x02, 0x0F, 0x00, // draw 1px colored palette[2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment