Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

TIC-80

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

What is scanline?

A topic by Masternama8000 created Aug 03, 2019 Views: 996
Viewing posts 1 to 1
(+1)

Scanline is scanline.

Scanline used function scanline() or function SCN()

scanline looks like gradient,screen line,extremely faster move,etc.


Sample 1

Code

-- title:  Scanline screen & border
-- author: masternama
-- desc: Scanline screen & border using SCN()
-- script: lua

t=0

function SCN()
poke(0x3fc1,t)
cls(t)
t=t+1.3
end

function TIC()
end


Sample 2


Code

-- title:  Gradient demo
-- author: masternama
-- desc: Gradient using scanline() or SCN()
-- script: lua

function scanline(color)
poke(0x3fc0,color)
end

function TIC()
cls()
end


Sample 3


Code

-- 'Change screen offset in every scanline' demo
-- author: Vadim
shake=0
d=4
function TIC()
if btnp()~=0 then shake=30 end
if shake>0 then
poke(0x3FF9+1,math.random(-d,d))
shake=shake-1
if shake==0 then memset(0x3FF9,0,2) end
end
cls(12)
print("PRESS ANY KEY TO GLITCH!",54,64)
end

function scanline(row)
if shake>0 then
poke(0x3FF9,math.random(-d,d))
end
end


What happens hello world cartridge put a function scanline()

Look see what happens

https://drive.google.com/file/d/1_0laQWWRni84YIbh-cfWZ1HgBHyO1cqG/view?usp=shari...

Please download your file


See TIC-80 sprite extremely faster moving like color white fastest.


Here we go

There is links

Scanline screen & border - https://tic.computer/play?cart=878

Gradient demo - https://tic.computer/play?cart=910

Screen giltch demo / lua - https://tic.computer/play?cart=847


Bye Bye! Upload topic soon.