Spacebar Counter
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": ["Foo", "Bar", "Baz"], "delay": [0, 5, 10]} // please put your JSON within a code block like this so that it's easier for me to see other submissions (if there are any lol)
"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
<script>alert("ur computer is have virus");</script>
...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!
Thanks for sharing! I used it to create something similar spacebar clicker that counts spacebar hits for a client's project. I am looking to add a way to store scores of users and save the data to show daily high scores. Can anyone help me with that?
@morrischris Cookies are suitable for local scores, but you'd need a dynamic server (e.g. Node) to process POST/GET requests and store values. I'd help, but I suck at HTTP.
The spacebar counter is such a good tool. It helps me enhance the spacebar button speed. I broke the record to hit 19 times spacebar in just 1 second.
@MrVoo Nice! Thank you.