summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
authorthe lemons <citrons@mondecitronne.com>2022-12-20 17:21:59 -0600
committerthe lemons <citrons@mondecitronne.com>2022-12-21 00:12:16 -0600
commit15b1b3127e636a8a63ff9cdb11dbac68f5218ffe (patch)
treeaf710fe75c1081e2d9f119ae3280d2f662eea859 /main.lua
parent94f7fc0d3e410a7c7dc6f6cffe0ed87238608391 (diff)
objects have velocity
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index 970a0fb..84fb787 100644
--- a/main.lua
+++ b/main.lua
@@ -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()