Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Here is a poked 1-pixel sprite for TIC-80. I think it’s pointless, but poking in a more complex sprite might be doable.

I just wanted to try it out and provide a working example.

-- Fill a sprite with zeroes
for i = 0,31 do
    poke(0x4000+i, 0)
end
-- Poke a palette 9 pixel in the sprite
poke4(0x8000, 9)
x=50
y=50

function TIC()
    y=y+1
    x=x+1
    cls()
    -- Sprite with 0 as transparent
    spr(0,x%240,y%136,0)
    print("Poked sprite")
end