Architecture Note: Isolating State and Side Effects in the LÖVE 2D Game Loop
Learn how to structure a LÖVE 2D project with clear data boundaries, frame-rate independent updates, and isolated draw transforms to prevent stutter and global state bugs.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to structure a LÖVE 2D project with clear data boundaries, frame-rate independent updates, and isolated draw transforms to prevent stutter and global state bugs.
A diagnostic guide for Lua memory leaks caused by strong table references and closure captures, with ordered checks, weak-table fixes, and escalation criteria.
Love2D’s setScissor lets you clip drawing to a screen‑space rectangle, simplifying UI layout and viewports. This guide walks through a concrete example, performance trade‑offs, and best‑practice checklist to help you integrate clipping into your games.
When Neovim’s LSP client won’t attach, completions, diagnostics, and hover info are missing. Use this step‑by‑step diagnostic checklist—starting with the server binary, configuration, root‑dir detection, and debug logs—to pinpoint and resolve the issue.
Integrate Lua safely into C++ by isolating each script in its own lua_State, restricting libraries for sandboxing, and using custom allocators to keep memory under control.
Learn how Lua metatables let you overload operators like + and * for custom types such as vectors, with a concrete example, trade‑offs, and debugging tips.
Learn how to use Neovim’s Lua‑based LSP client and async job control to create responsive, floating diagnostics and run external formatters without blocking the editor. The article covers a concrete example, trade‑offs, and best‑practice checks.
Stop fighting complex state machines in Lua. Learn how to use coroutines and a simple scheduler to write linear, readable game behaviors that pause and resume across frames.
A blank white window or instant crash in LÖVE usually means love.load fails before the first draw. This guide shows how to check main.lua placement, expose console errors, isolate love.load with prints, and fix path and blocking issues.