summaryrefslogtreecommitdiff
path: root/src/player.c
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-03-17 10:51:17 +0100
committerkdx <kikoodx@paranoici.org>2023-03-17 10:51:17 +0100
commitba8cb4fcea09190bbe6e80c45ef59314feea8600 (patch)
tree991862671f887760883507159be6539a7915bbae /src/player.c
parent7ef2f09cfdd85b1427e89a50a173fc2b67221b88 (diff)
downloadhyperultra-ba8cb4fcea09190bbe6e80c45ef59314feea8600.tar.gz
simple entity system
Diffstat (limited to 'src/player.c')
-rw-r--r--src/player.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c
new file mode 100644
index 0000000..d751857
--- /dev/null
+++ b/src/player.c
@@ -0,0 +1,25 @@
+#include "player.h"
+#include "entity.h"
+#include "game.h"
+#include <string.h>
+
+static void
+player_update(Entity *this, Game *g)
+{
+ (void)this, (void)g;
+}
+
+static void
+player_draw(Entity *this, Game *g)
+{
+ (void)this, (void)g;
+}
+
+void
+player_init(Entity *this)
+{
+ memset(this, 0, sizeof(*this));
+ this->type = ET_PLAYER;
+ this->update = player_update;
+ this->draw = player_draw;
+}