ÎÌÌÌ̈ˆˆ¬ªªª¬ˆˆˆ¬ÌÌ̬ÌÀ̬ÌÀ̬ÌÀÌÌÌìÌÀÀî̬ÀÌÀ¬ÀÀÀ¬ÀÀÀ¬ÀÀÎÌÌÌ̈ˆˆ¬ªªª¬ˆˆˆ¬ÌÌ̬ÌÌ̬ÌÀ̬ÌÀÌÌÌìÌÀÀî̬ÀÌ̬ÀÀÀ¬ÀÀÀ¬ÀÀ¬ÌÌ̬ªªª¬ª¬ª¬ªÊ̬ªªªŒˆˆˆÌÀÌÎÌÌÎ̬̪ªÀ쬪ÀÀÀÌîÀìîÌÌîî¬ÌÌ̬ªªª¬ª¬ª¬ªÊ̬ªªªŒˆˆˆÌÀÌÎÌÌÎ̬̪ªÀ쬪ÀÀÀÌîÀìîÌÌîî >¯3Ì ÌÌ ÀÌÀÌ ÌÌ ÌÌ ÌÌÌÌ ÌÌÌ ÌÌÌÀ ÌÌÌ ÌÌ ÌÌ Ì ÌÌ«-- title: ScreenSaver -- author: nerddude -- desc: Super tiny and customizable screen saver. -- script: lua -- Tic-80 screen size local SCREEN_X = 232 local SCREEN_Y = 136 -- Character that will bounce local CHAR = "NEAT!" local COLOR = 12 -- Size of character local SCALE = 1 -- Speed of character local SPEED = 2 -- Coordinates local x, y = 0, 0 -- Direction for switching when -- hitting borders of screen. local xDir = 1 local yDir = 1 -- 60 tps function TIC() -- clear screen for next frame cls() -- update coordinates x = x + xDir * SPEED y = y + yDir * SPEED -- width will be needed for accurate bouncing txtWidth = print(CHAR, x, y, COLOR, true, SCALE) -- if we hit the borders of screen, inverse the direction if (x > SCREEN_X - txtWidth ) then xDir = -1 elseif (x < 0) then xDir = 1 end if (y > SCREEN_Y - SCALE * 6 ) then yDir = -1 elseif (y < 0) then yDir = 1 end end -- Done