From fd983dd6e10db80d4870984c6ab950c0d2d8f59c Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Thu, 12 Mar 2026 07:42:11 +0100 Subject: [PATCH] doc fixes --- inc/logic/logic.glitch.lua | 7 ++++--- inc/window/window.end.lua | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/inc/logic/logic.glitch.lua b/inc/logic/logic.glitch.lua index 2d277d9..0a21d44 100644 --- a/inc/logic/logic.glitch.lua +++ b/inc/logic/logic.glitch.lua @@ -1,3 +1,4 @@ +--- @section Glitch Glitch = {} --- Shows the glitch effect. @@ -38,13 +39,13 @@ function Glitch.draw() for i = 1, 15 do local rx = math.random(0, Config.screen.width - 1) local ry = math.random(0, Config.screen.height - 1) - + -- Sample color at the random point local color = pix(rx, ry) - + -- Determine random length for the stripe (2-40) local length = math.random(2, 40) - + -- Draw the vertical stripe for sy = 0, length - 1 do local dy = ry + sy diff --git a/inc/window/window.end.lua b/inc/window/window.end.lua index 22697f8..8d2b8f5 100644 --- a/inc/window/window.end.lua +++ b/inc/window/window.end.lua @@ -1,3 +1,5 @@ +--- @section EndWindow + --- Draws the end screen window. --- @within EndWindow function EndWindow.draw()