From 7b76e7467822316b699847cbd61a0ecb985882d3 Mon Sep 17 00:00:00 2001 From: rodri Date: Tue, 8 Aug 2023 08:35:17 +0000 Subject: initial commit. --- dat.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 dat.h (limited to 'dat.h') diff --git a/dat.h b/dat.h new file mode 100644 index 0000000..b0350e1 --- /dev/null +++ b/dat.h @@ -0,0 +1,31 @@ +enum { + Twater, + Tship, + Thit, + Tmiss, + NTILES, + + Boardmargin = 50, + TW = 16, + TH = TW, + MAPW = 17, + MAPH = MAPW, + SCRW = Boardmargin+MAPW*TW+Boardmargin, + SCRH = Boardmargin+MAPH*TH+TH+MAPH*TH+Boardmargin, +}; + +typedef struct Input Input; +typedef struct Board Board; + +struct Input +{ + Mousectl *mc; + Keyboardctl *kc; +}; + +struct Board +{ + RFrame; + char map[17][17]; + Rectangle bbox; +}; -- cgit v1.2.3