From 796516b119d7c5461035e44afd74b92d14e49244 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Fri, 9 Jan 2026 05:57:37 +0100 Subject: [PATCH] render: Added stub for rendering --- src/main.s | 1 + src/render.s | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/render.s diff --git a/src/main.s b/src/main.s index 01dc486..cad1cc7 100644 --- a/src/main.s +++ b/src/main.s @@ -71,6 +71,7 @@ main: #include "attributes.s" #include "item.s" #include "sprites.s" +#include "render.s" #include "tiles.inc" #include "text.s" diff --git a/src/render.s b/src/render.s new file mode 100644 index 0000000..777eb8d --- /dev/null +++ b/src/render.s @@ -0,0 +1,20 @@ + ; pseudo 3d rendering code + ; draws based on player position into a frame buffer (tiles) + ; the frame buffer is then copied to the correct tileset + + ; draws a pixel into the frame buffer + ; inputs: + ; hl: ptr into buffer + ; $1: color (0-3) +#macro render_draw_pixel + +#endmacro + + + ; inits the viewport + ; by placing a unique tile in each position + ; this tile diretly corresponds to the frame buffer +render_init_view: + ; TODO: + ret + -- 2.30.2