Skip to content

Commit

Permalink
Implement most of the functionality.
Browse files Browse the repository at this point in the history
  • Loading branch information
shinkarom committed Aug 24, 2023
1 parent 4851b99 commit 34e1d78
Show file tree
Hide file tree
Showing 3 changed files with 354 additions and 13 deletions.
1 change: 1 addition & 0 deletions bin/snake.luchok
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ function collision_with_wall()
end

function vblank()
cls()
if scene == 0 then
if not should_stop then
frames = frames + 1
Expand Down
3 changes: 2 additions & 1 deletion bin/test.luchok
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ frames = 0
speed = 20
delay_timer = 128
sound_timer = 128
function vblank()
function vblank()
cls()
frames = frames + 1
if frames % (60 / speed) == 0 then
x = x + dx
Expand Down
Loading

0 comments on commit 34e1d78

Please sign in to comment.