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 c30e337 commit 83f6621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ snake:on_update(function(self)

-- if elapsed N seconds, walk N pixels

local now = get_ticks()
local now = engine:ticks()
if now - elapsed > 500 then
elapsed = now
if direction == Directions.NORTH then
Expand Down

0 comments on commit 83f6621

Please sign in to comment.