Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

TIC-80

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

Guide

A topic by Alien3301 created Aug 31, 2021 Views: 295 Replies: 4
Viewing posts 1 to 3
(1 edit)

On GitHub wiki isn’t written how to generate random numbers, for what is needed function init, how to check line collisions etc. Where I can find answers?(I am Ukrainian and speak Russian so maybe  I missed it)

Developer

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!

Here https://tic80.com/play?cart=2073 a cartridge showing how line collision works

Thanks