diff options
| author | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-05-28 21:01:02 -0700 |
|---|---|---|
| committer | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-05-28 21:01:02 -0700 |
| commit | 16c1140ead99064799113eb3d8ddcf47929bba70 (patch) | |
| tree | 39222a2af7491afaf0efd7fa9b5771d0283c78cc /math.lua | |
| parent | 661156ce988131eb4896a7af4d00a42b520305e7 (diff) | |
| download | dyl8-16c1140ead99064799113eb3d8ddcf47929bba70.tar.gz dyl8-16c1140ead99064799113eb3d8ddcf47929bba70.zip | |
Adding debug collision boxes, making bullets hurt you, and be able to kill bullets upon consumptionHEADmain
Diffstat (limited to 'math.lua')
| -rw-r--r-- | math.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
