aboutsummaryrefslogtreecommitdiff
path: root/src/entities/caporale.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/entities/caporale.c')
-rw-r--r--src/entities/caporale.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/entities/caporale.c b/src/entities/caporale.c
new file mode 100644
index 0000000..bf95235
--- /dev/null
+++ b/src/entities/caporale.c
@@ -0,0 +1,19 @@
+#include "caporale.h"
+#include "assets.h"
+#include "game.h"
+
+void initCaporale(Entity * entity, Game * game) {
+ entity->model = &game->assets.models[CAPORATE_ASSET];
+ entity->velocity.angularVelocity = (AxisAngle){(Vector3){1.0, 1.0, 1.0}, 1.0};
+}
+
+void closeCaporale(Entity * entity) {
+}
+
+void updateCaporale(Game * game, Entity * entity) {
+ entityUpdateRotation(entity);
+}
+
+void drawCaporale(Game * game, Entity * entity) {
+ entityDraw(entity);
+}