[FEAT] All screen modes implemented

This commit is contained in:
2021-12-04 10:52:08 +01:00
parent 0482467037
commit 7552136845
4 changed files with 116 additions and 33 deletions

View File

@@ -6,15 +6,16 @@ function init()
end
function update()
setmode(2)
paper(COLOR_BLACK)
cls()
x = x + dx
y = y + dy
if x == 39 or x == 0 then
if x == 19 or x == 0 then
sound(440, 50)
dx = -dx
end
if y == 29 or y == 0 then
if y == 14 or y == 0 then
sound(880, 50)
dy = -dy
end