Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

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!