From: Lukas Krickl Date: Fri, 19 Dec 2025 16:00:45 +0000 (+0100) Subject: attr: added attribute stubs X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=f8aef80daa77e99d3944ac350343afe933cfdae3;p=gbrg%2F.git attr: added attribute stubs --- diff --git a/src/attributes.s b/src/attributes.s new file mode 100644 index 0000000..d7b4d48 --- /dev/null +++ b/src/attributes.s @@ -0,0 +1,4 @@ + + ; table of actor type -> attribute +act_attr_table: + diff --git a/src/defs.s b/src/defs.s index 135dbdb..3f12972 100644 --- a/src/defs.s +++ b/src/defs.s @@ -155,3 +155,8 @@ .de MAP_NEAR_DOOR, 1 .de MAP_FAR_DOOR, 1 .de MAP_FURTHEST_DOOR, 1 + + ; attribute struct +.se 0 +.de attr_str, 1 +.de attr_size, 0 diff --git a/src/macros.inc b/src/macros.inc index 2c431d0..080a976 100644 --- a/src/macros.inc +++ b/src/macros.inc @@ -209,3 +209,10 @@ $1: ; p0, state .db 0, 0 #endmacro + + ; defines an attribute list + ; inputs: + ; $1: str +#macro attrdef + .db $1 +#endmacro diff --git a/src/main.s b/src/main.s index 9adf896..321a571 100644 --- a/src/main.s +++ b/src/main.s @@ -68,6 +68,7 @@ main: #include "mainmenu.s" #include "tiles.s" #include "levels.s" +#include "attributes.s" #include "tiles.inc" #include "text.s"