render: Added stub for rendering
authorLukas Krickl <lukas@krickl.dev>
Fri, 9 Jan 2026 04:57:37 +0000 (05:57 +0100)
committerLukas Krickl <lukas@krickl.dev>
Fri, 9 Jan 2026 04:57:37 +0000 (05:57 +0100)
src/main.s
src/render.s [new file with mode: 0644]

index 01dc4862873bf70be55a72d1e716f27b7a228a02..cad1cc7c0aef54bd6ec4c3f1da989628edeb4d2c 100644 (file)
@@ -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 (file)
index 0000000..777eb8d
--- /dev/null
@@ -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
+