Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

TIC-80

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

Is there a fast way to move palette from image to Tic-80?

A topic by alexsilent created Feb 07, 2020 Views: 508 Replies: 1
Viewing posts 1 to 2
(1 edit)

I have an idea for new palette for Tic-80.
But manually grabbing a HEX data from color and copy to Tic-80, is not so fast way.
Is there a fast way to move palette from image to Tic-80?

(1 edit) (+1)

Unfortunately, importing sprites doesn't adjust the palette accordingly so that's out.

I think you'd need to poke the required RGB values into TICs ram. The only way I can think of getting those values is to write an external program that will allow you to load an image, read RGB values then write them to a text file (there are dozens of free languages/libraries that can do this - for example LOVE2D if you want to stick to Lua ). You could then paste the values into your Lua file and poke them into RAM.

Maybe there's a simpler way but I can't think of one!