Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Hi,

try to use math.random() https://www.lua.org/manual/5.3/manual.html#pdf-math.random to generate random numbers

As for line collision, it's not TIC-80 specific question, pls google it.

Thank you!