summaryrefslogtreecommitdiff
path: root/zombies.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-08 15:41:08 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-08 15:41:08 +0100
commitf84639d4b1eda622bf7667a7223a4a335c093437 (patch)
treefa78998a68bfaac01b1be34ab1b354b86516d6fd /zombies.c
parentf8b97f2450bb789ae54a1d8d3845110342ff6134 (diff)
work
Diffstat (limited to 'zombies.c')
-rw-r--r--zombies.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/zombies.c b/zombies.c
index 3df810f..fc20a00 100644
--- a/zombies.c
+++ b/zombies.c
@@ -1,6 +1,8 @@
#include "include/zombies.h"
void spawn_zombie(int x, int y) {
+ return;
+
for (int i = 0; i < max_zombies; i++) {
zombie o = zombies[i];
if (o.alive) continue;
@@ -62,7 +64,7 @@ void draw_zombies_at_tile(platform_window* window, int x, int y) {
zombies[i].position.y += diry*speed;
zombies[i].position.z = height;
- box box = get_box_of_square(window, (vec3f){o.position.x, o.position.y, height}, o.size);
+ box box = get_render_box_of_square(window, (vec3f){o.position.x, o.position.y, height}, o.size);
render_quad_with_outline(box.tl_b, box.tr_b, box.bl_b, box.br_b);
render_quad_with_outline(box.tl_u, box.tr_u, box.bl_u, box.br_u);
render_quad_with_outline(box.tl_u, box.tl_b, box.bl_u, box.bl_b);