Ask coding questions

← Back to all posts
Spacebar Counter
Larnyx

Working on a spacebar counter that rewards the user with brief messages at milestones.
Like, at 10 taps, the player might get a message like "You're doing great, keep going!" or whatever.
I've finished the actual coding portion, but I can't think of anything for the messages, so...crowdsourcing time.

The messages can be pretty much anything, as long as they don't violate Replit's ToS in some way.

Please submit messages in JSON format:

"content" is the message, while "delay" is the amount of taps required before the user views the content.
So, the user would see "Foo" immediately, then, after 5 taps, "Bar", then after another 5, "Baz".

Users can only see 4 messages at any time (kinda like Universal Paperclips' console), so don't do stuff like "Hey dude remember what I typed 33 messages ago? No? Hah that sux"

Also, remember that the user can't actually give any input (other than pressing the spacebar, I guess...), so don't ask for text input or something. Same thing applies to the messages themselves: just plain text.

No HTML. If I see something along the lines of

...I'm gonna lose it.

Another thing: try to go for 200 chars max (each message, not total).
These are small statements of encouragement, not W3's JS documentation.

Other than the stuff above, everything is accepted.
You could even copy and paste the Bee Movie script (one line at a time, of course), for all I care.

Thanks!

I'll upload a hyperlink to the site soon.

Edit: Here it is!

Answered by MrVoo [earned 5 cycles]
View Answer
Voters
Larnyx
Comments
hotnewtop
MrVoo
Larnyx

@MrVoo Nice! Thank you.