From 3d0bb789de6f1b47f21755a141959ccc1cacadca Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Tue, 10 Feb 2026 13:39:32 +0100 Subject: [PATCH] wolf: add minimap --- picotron/wolfenstein_src/main.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/picotron/wolfenstein_src/main.lua b/picotron/wolfenstein_src/main.lua index bb62e23..1868355 100644 --- a/picotron/wolfenstein_src/main.lua +++ b/picotron/wolfenstein_src/main.lua @@ -1,3 +1,4 @@ +--[[pod_format="raw",created="2026-02-10 12:09:44",modified="2026-02-10 12:27:08",revision=2]] player = { origin = { x= nil, @@ -25,7 +26,12 @@ function _init() end function cast_ray(origin, angle) - + +end + +function draw_minimap() + local tile_size = 4 + map(0, 0, 20, 20, 31, 31, 0x0000, tile_size, tile_size) end function _draw() @@ -37,5 +43,5 @@ function _draw() local angle = (player.dir-(fov/2) + x * angle_step) % (2 * math.pi) local bloc, dist = cast_ray(player.origin, angle) end - -- map() + draw_minimap() end