Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

TIC-80

Fantasy computer for making, playing and sharing tiny games. · By Nesbox

Code snippet - animated wavy text

A topic by greygolem created Mar 30, 2017 Views: 658 Replies: 2
Viewing posts 1 to 3
(2 edits) (+1)

function wave(text, x, y, amp)

for i=1, #text do

local c = text:sub(i, i)

print(

c,

x+i*6,

y + amp*math.sin((time()+i*60)/180)

)

end

end

I like it! =)

Awesome good fun, thanks!