diff options
author | NielsCoding <101340368+NielsCoding@users.noreply.github.com> | 2023-03-11 11:16:50 +0100 |
---|---|---|
committer | NielsCoding <101340368+NielsCoding@users.noreply.github.com> | 2023-03-11 11:16:50 +0100 |
commit | f4e4b53fe3ef96a7bd2d4052c5a181f05945a0aa (patch) | |
tree | 12946a4d8c446a0957a02aa13a057a42571f3ad4 | |
parent | c9ef075fbbb57f9968fbce39b12fbd82a89e7ef6 (diff) |
makefile engine
-rw-r--r-- | src/engine/draw_screen.h | 8 | ||||
-rw-r--r-- | src/engine/engine.c | 3 | ||||
-rw-r--r-- | src/engine/level.h | 1 | ||||
-rw-r--r-- | src/makefile | 3 |
4 files changed, 14 insertions, 1 deletions
diff --git a/src/engine/draw_screen.h b/src/engine/draw_screen.h index f5d7507..4af5865 100644 --- a/src/engine/draw_screen.h +++ b/src/engine/draw_screen.h @@ -1 +1,9 @@ +#pragma once + + // every function call for drawing the screen goes here. +#include "engine/maths.h" + +#include <stdint.h> +uint16_t hh_world_to_tile(vec2 pos); +void hh_draw_screen(vec2 viewport);
\ No newline at end of file diff --git a/src/engine/engine.c b/src/engine/engine.c new file mode 100644 index 0000000..f3410a4 --- /dev/null +++ b/src/engine/engine.c @@ -0,0 +1,3 @@ +#include "engine/draw_screen.h" +#include "engine/level.h" +#include "engine/maths.h" diff --git a/src/engine/level.h b/src/engine/level.h index 09f77e7..8d610dd 100644 --- a/src/engine/level.h +++ b/src/engine/level.h @@ -1,3 +1,4 @@ +#pragma once //deal with loading/saving the correct level /** @brief */ diff --git a/src/makefile b/src/makefile index c69bfb5..96751fb 100644 --- a/src/makefile +++ b/src/makefile @@ -30,7 +30,8 @@ CFLAGS += $(if $(DESKTOP), -DHH_TARGET_DESKTOP, ) LOCAL_SRCS += main.c \ ppu/internals.c \ ppu/ppu.c \ - demo.c + demo.c \ + engine/engine.c CFLAGS += $(SHARED_FLAGS) LFLAGS += $(SHARED_FLAGS) |