summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-03-19 01:28:54 +0100
committerkdx <kikoodx@paranoici.org>2023-03-19 01:28:54 +0100
commitb859924fe681407bfdb99f5d9aa6b08d08ea9d60 (patch)
tree48735f60242c8f38f54ee2141f8afec0c72d4880
parenta9952fb4912ff7dc7f4a26137316dfa1df01c599 (diff)
downloadhyperultra-b859924fe681407bfdb99f5d9aa6b08d08ea9d60.tar.gz
spike do nothing
-rw-r--r--src/entity.h4
-rw-r--r--src/spike.c11
-rw-r--r--src/spike.h6
3 files changed, 20 insertions, 1 deletions
diff --git a/src/entity.h b/src/entity.h
index f1b0e86..5c75ab2 100644
--- a/src/entity.h
+++ b/src/entity.h
@@ -2,6 +2,7 @@
#include "player.h"
#include "exit.h"
#include "deathpart.h"
+#include "spike.h"
#include <stdbool.h>
struct Game;
@@ -10,7 +11,8 @@ enum {
ET_NONE,
ET_player,
ET_exit,
- ET_deathpart
+ ET_deathpart,
+ ET_spike,
};
typedef struct Entity Entity;
diff --git a/src/spike.c b/src/spike.c
new file mode 100644
index 0000000..4d9ce87
--- /dev/null
+++ b/src/spike.c
@@ -0,0 +1,11 @@
+#include "entityimpl.h"
+
+IMPL_UPDATE() {
+} IMPL_END
+
+IMPL_DRAW() {
+
+} IMPL_END
+
+IMPL_INIT(spike) {
+} IMPL_END
diff --git a/src/spike.h b/src/spike.h
new file mode 100644
index 0000000..514af83
--- /dev/null
+++ b/src/spike.h
@@ -0,0 +1,6 @@
+#pragma once
+
+struct Entity;
+struct Game;
+
+struct Entity *spike_init(struct Entity *this, int x, int y);