🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

PICO-8 API Wrapper for TIC-80

A topic by gl.itch created 182 days ago Views: 443 Replies: 6
Viewing posts 1 to 4
(Edited 3 times) (+1)

I've been working on a PICO-8 API wrapper for TIC-80. It's not feature-complete yet, but it's getting there and has helped me move many of my PICO-8 projects into the TIC environment very quickly. Thought I'd share and see if it's useful to others.

It wraps most of the API functionality—favoring compatibility over performance—and also initializes the PICO-8 palette in the correct color order.

Check it out here and let me know what you think: https://github.com/musurca/pico2tic/

Developer(+2)

Also you can use cartridge metadata to init palette https://github.com/nesbox/tic.computer/wiki#cartri...

Try to add the code to initialize pico palette in the correct order

-- pal: 0000001d2b537e2553008751ab52365f574fc2c3c7fff1e8ff004dffa300ffec2700e43629adff83769cff77a8ffccaa

Interesting idea btw

Thanks

(Edited 1 time)

Ah, I didn't realize you could do that--thanks. There may still be an advantage to storing it outside of the metadata so that changing/restoring the screen palette via pal(a,b,1) will work—but I guess I could always pull it directly out of memory during initialization.

this is very handy! Great idea!

The only thing I really miss from pico8 is the += functionality. Though I don't think that can be added externally

TIC-80 is based on real LUA on the contrary of PICO-8. And LUA doesn't support shorthands.

If you want to use shorthands like +=, -=, *=, /=, %= you should try moonscript which is supported by TIC-80

(+1)

Yeah, I get that. I'm pretty sure pico uses "real" lua too, It just has some of the standard library inaccessible on purpose, to keep it in line with their philosophy of an old ass computer. I'm also pretty sure it accomplishes its three, incredibly useful, short hands by parsing your code and modifying it before passing it to what ever handles the lua calls in the engine.


Those short hands, the "IF (NOT B) I=1 J=2" if statement, the unary math operators, and the "!= " so much more readable than ~= in the low-fi font, would be nice to see in tic. But i love tic, I'm just griping.


Also, something about moonscript just turns me off. I don't like its syntax at all, it looks like an interactive fiction language like Alan or Inform7.