summaryrefslogtreecommitdiff
path: root/source/tb/tb.h
diff options
context:
space:
mode:
authornasr <nsrddyn@gmail.com>2026-04-16 22:01:12 +0200
committernasr <nsrddyn@gmail.com>2026-04-16 22:01:12 +0200
commit2f4344fe6934b25709cb00a6706fd5d462d9e6f4 (patch)
tree7c8e3d5eaa416653253c74ab917506d5a6f48cf7 /source/tb/tb.h
parent13d9e4df0f4555079d16313a54c6035e22d575a6 (diff)
feaature(main): drawing enemys at random positions and storing them as a linked list
Diffstat (limited to 'source/tb/tb.h')
-rw-r--r--source/tb/tb.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/source/tb/tb.h b/source/tb/tb.h
index e69de29..e03b328 100644
--- a/source/tb/tb.h
+++ b/source/tb/tb.h
@@ -0,0 +1,34 @@
1#ifndef TB_H
2#define TB_H
3
4typedef struct enemy enemy;
5struct enemy
6{
7 enemy *next;
8 enemy *prev;
9 u64 color;
10 s32 x, y;
11};
12
13typedef struct enemy_list enemy_list;
14struct enemy_list
15{
16 enemy *first;
17 enemy *last;
18
19 s32 count;
20};
21
22
23typedef struct user user;
24struct user
25{
26 u64 color;
27 b32 alive;
28 s32 x;
29 s32 y;
30 u64 width;
31 s32 height;
32};
33
34#endif