Log In  

Headline Generator 2

Cart #headlinegenerator2-0 | 2023-07-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Now with twice the pages, twice the controversy and three times the relevance. Get your newspaper today at the BBS.

Previous version:

Cart #headlinegenerator-0 | 2023-05-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

silly project I did yesterday.

It picks 3 lines from 3 different lists and combines them based on a seed so you get randomized headlines.
You can flip pages with the arrow keys.
It was a challenge to make something both randomized and internally consistent.

The art for the images has been a bit of a struggle.
They need to be readable enough to feel like they mean something, but ambiguous enough to fit almost any context.
I feel like I didn't completely succeed with the images, so I might end up changing the art later.

If you know a good joke that fits the template, feel free to put some lines in. Just insert them into the lists on tab1. The lists don't have to be the same length. If you add a lot of entries (like say 15 or so) you should probable make it pick from a bigger random number in the for loop that generates the seeds (right after the "end" of the draw funciton).

Because of the way the images are picked, occasionally you see the right edge of the sprite sheet. This didn't bother me that much, so for now i left it like that.

PS is there some sort of modulo function in pico8? I think lua has one in its math library, but I couldn't immediately it in pico8. I ended up writing my own modulo function to convert bigger seeds into smaller ones so the arrays don't return "nil" when te seed is bigger then the length of the array.

possible improvements

  • a page flipping sound
  • a full page flipping animation is still too complicated at the moment, but some other screen transition might also be nice
  • better humour
  • better fitting images
P#129905 2023-05-19 11:00 ( Edited 2023-07-07 20:48)


This gave me a good chuckle. Great work and thanks!

P#129910 2023-05-19 11:53

The internet says all twins are clone with enough alcohol. lmao

P#129917 2023-05-19 13:09

These are funny! I hope you do add more. Could be used to generate silly pixel art or game ideas.

Modulo is % btw:

P#129982 2023-05-21 05:06

I will probably add more sentences.
And making this into a prompt generator is something i will defenetely consider.

I also just realized i left a in a typo.

P#129986 2023-05-21 07:25

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-09-27 08:55:16 | 0.014s | Q:24