From f8aef80daa77e99d3944ac350343afe933cfdae3 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Fri, 19 Dec 2025 17:00:45 +0100 Subject: [PATCH] attr: added attribute stubs --- src/attributes.s | 4 ++++ src/defs.s | 5 +++++ src/macros.inc | 7 +++++++ src/main.s | 1 + 4 files changed, 17 insertions(+) create mode 100644 src/attributes.s 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" -- 2.30.2