PICO-8 Thought for the Day v0.04

Well, as it turns out, the final version of my Thought for the Day cart for PICO-8 wasn’t the final version after all. I had to fix a bug that crashed the app when running it off the BBS from an iPhone. That should be fixed now.

I added some code that checks to see if the cartdata that’s being read at startup is 0. Because if it is, my pull from the thoughts table will return NIL and crash the app.

1
2
3
4
5
6
7
8
 cartdata("fabsh_tftd")
 tftd_cart=dget(1)
 if tftd_cart==0 then
  tftd=pick_thought()
  dset(1,thought_i)
 else
  tftd="+++ "..thoughts[tftd_cart].." +++"
 end

Fixed cart:

– 30 –