Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit) (+1)

The jam doesn’t allow sprites,

Oh? I thought it was external sprites. If you poke a sprite in from the 560 chars of code is it still not allowed?

I don’t even know yet if that’s plausible to do in 560 chars, but I was going to try it at least once. I was going to try OP’s 1-pixel sprite example then realized there’s no advantage to doing so for a single pixel in Tic-80.

Idk if you can do 1-pixel sprite from TIC-80 code, but instead you can color 1 pixel and update it's position when key is pressed.

(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
(+1)

Hey Jim! Yes, you're right about that. We don't allow spritesheets in the traditional sense, but if you can poke in some sprite art from the code, that's just fine! :)