diff options
| author | the lemons <citrons@mondecitronne.com> | 2022-12-20 17:21:59 -0600 |
|---|---|---|
| committer | the lemons <citrons@mondecitronne.com> | 2022-12-21 00:12:16 -0600 |
| commit | 15b1b3127e636a8a63ff9cdb11dbac68f5218ffe (patch) | |
| tree | af710fe75c1081e2d9f119ae3280d2f662eea859 /main.lua | |
| parent | 94f7fc0d3e410a7c7dc6f6cffe0ed87238608391 (diff) | |
objects have velocity
Diffstat (limited to 'main.lua')
| -rw-r--r-- | main.lua | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -13,7 +13,10 @@ local cam = { } for i = 1, 100 do - obj.new("test", {math.random(1000), math.random(1000)}) + obj.new("test", {math.random() * 1000, math.random() * 1000}, { + avel = math.random() * 0.5 - 0.25, + vel = {math.random() * 0.5 - 0.25, math.random() * 0.5 - 0.25} + }) end local function view_scale() |
