From 25038d3ec02b6b5faa64b66ce6b3fa6d51532407 Mon Sep 17 00:00:00 2001 From: asrael Date: Thu, 20 Nov 2025 10:24:33 -0600 Subject: [PATCH] add red crosshair to worldgen demo --- demo/mod/worldgen.fnl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/demo/mod/worldgen.fnl b/demo/mod/worldgen.fnl index 914e29b..a99f0c3 100644 --- a/demo/mod/worldgen.fnl +++ b/demo/mod/worldgen.fnl @@ -185,6 +185,13 @@ (pxl8.world_render world [cam-x eye-y cam-z]) + (let [cx (/ (pxl8.get_width) 2) + cy (/ (pxl8.get_height) 2) + crosshair-size 4 + red-color 18] + (pxl8.line (- cx crosshair-size) cy (+ cx crosshair-size) cy red-color) + (pxl8.line cx (- cy crosshair-size) cx (+ cy crosshair-size) red-color)) + (pxl8.text (.. "fps: " (string.format "%.1f" (pxl8.get_fps))) 5 5 12) (pxl8.text (.. "pos: " (string.format "%.0f" cam-x) "," (string.format "%.0f" cam-y) ","