From 16c1140ead99064799113eb3d8ddcf47929bba70 Mon Sep 17 00:00:00 2001 From: Elizabeth Alexander Hunt Date: Thu, 28 May 2026 21:01:02 -0700 Subject: Adding debug collision boxes, making bullets hurt you, and be able to kill bullets upon consumption --- math.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'math.lua') diff --git a/math.lua b/math.lua index ddc6644..4ebd38f 100644 --- a/math.lua +++ b/math.lua @@ -9,7 +9,7 @@ Vec2.__mul = function(a, b) return vec2(a.x * b.x, a.y * b.y) end Vec2.__div = function(a, b) - if (type(b) == "number") then return vec2(a.x / b, a.y / b) end -- scalar mult + if (type(b) == "number") then return vec2(a.x / b, a.y / b) end -- scalar div return vec2(a.x / b.x, a.y / b.y) end Vec2.__tostring = function(a) return "(" .. fmt(a.x) .. "," .. fmt(a.y) .. ")" end -- cgit v1.3