Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Nov 17, 2023
1 parent 0414abf commit ae4ba6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ engine:prefetch(squares)
for _, name in ipairs(squares) do
local square = engine:spawn()
square.pixmap = name
square.on_update = function(self)
square.on_update(function(self)
self.x = math.random(0, 854)
self.y = math.random(0, 480)
self.angle = math.random(0, 360)
end
end)
end

local gc = engine:spawn()
Expand Down

0 comments on commit ae4ba6c

Please sign in to comment.