From: Lukas Krickl Date: Fri, 9 Jan 2026 04:57:37 +0000 (+0100) Subject: render: Added stub for rendering X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=796516b119d7c5461035e44afd74b92d14e49244;p=gbrg%2F.git render: Added stub for rendering --- 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 +