Share your repls and programming experiences

← Back to all posts
[GAME] Reaction Time
h
Coder100

REACTion time

How fast can you react?

Compete with people all over repl.it on the way to become the most nimble!

About

This was made -- unsurprisingly with react to test out just how hard it is to set it up (very hard) and also to test out what react.js can do. I've been mostly coding in Unity or p5.js, but I feel like it's time we focus on UI and maybe even mobile apps (hint hint switcheroo android app when)!

Process

This repl contains autogenerated code for maximum speed and less tears. If you would like to view the code and components, you are free to do so here. You will also be able to see the awesome repl.it component... (npm package soon!)

Building

It was built -- unsurprisingly -- with webpack and babel! I think they are really good to use and probably better than using gulp and react without ES6...

Inspiration

Human Benchmark. Need I say more?

Credits

Known Bugs

  • If you do it too fast, you may get this interesting score called 1604021441546 (or more). This is due to the fact that the browser rounds the time, so the number became 0, so Jan 1 1970 (time 0) - 0 = approx. 1604021441546.
  • Your scores might not be uploaded... I don't know why, people haven't been giving me any logs of what their data looks like, but general advice is to clear your localstorage (this does delete all progress!)

Closing

I hope you are really quick! My low score is 371 milliseconds due to the nature of my computer. As quoted from human benchmark

While an average human reaction time may fall between 200-250ms, your computer could be adding 10-50ms on top. Some modern TVs add as much as 150ms!

I have way too many extensions...

Alright have a great day and send screenshots of your times! (Maybe OS and browser too :O)

Voters
assual
Spotandjake
Wilke000
parkerslv
coder400
forceofyoda
Scarlett_Morris
chillcafe
TheOceanFace
mkhoi
Comments
hotnewtop
MeowcaTheoRange

I WAS THE ONE WHO GOT 1604021441546

F### YEAH

play the game and get this amazing anomaly also :) thanks

Coder100
firefish

@MeowcaTheoRange posted 18 hours ago. That unix epoch millisecond timestamp was surprise surprise,

Coder100
Chocolate16

Wait...........

HOW DOES THAT POSSIBLE
leaderboard?

Coder100
the_cool_dood

the_cool_dood

TheDrone7

Coder100
sugarfi

(very hard)

wdym webpack is easy

Coder100

@sugarfi no, I said setting it up

sugarfi

@Coder100 ik smh my head

Coder100

smh smh i bet half the time you spend coding react is actually setting it up @sugarfi

sugarfi

@Coder100 nah
webpack is a bit harder to set up but it's not that hard

mesquite2234

I've been here since 6 mins after posting (or close to that)

firefish

WHAT THE HELL I MANAGED TO FLUKE IT TO 88ms

realTronsi

@firefish 43ms beat that

Coder100

wow nice @realTronsi

realTronsi

@Coder100 oh its not on leaderboards did u take it down :(

firefish

@realTronsi no, the code doesn't allow scores less than 50ms

realTronsi

@firefish oh :(

firefish

First time I've found some code js so code I can't criticise it =)

firefish

yay 1ms totally not fake

Coder100

@elipie Implemented keypress!

Coder100

pog working on keyboard press new version coming soon!

AgastyaSandhuja

OHMYGOD (sad i forgot to save locally ;-;)

Coder100
DishanBhattacha
Coder100
AgastyaSandhuja

gg bro big pro i just got by luck on a random click ;-; @DishanBhattacha

hihitherethere

One thing: the play and home buttons are covering up some content. But really nice game overall!

Coder100

Thanks!! Yeah, I'll have to make the buttons smaller, a new build is
going to come soon :) @hihitherethere

Bookie0

POG

Coder100
Bookie0
firefish
Bookie0
firefish

@Bookie0 yay I pushed you off the leaderboard

Bookie0

great @firefish

firefish

@Bookie0 There is a limit.

I literally put

The longest name ever invented. So, from what other people have done, this space has enough room to write an essay, unlike the 140 characters in the box below. How annoying can this get? I'm actually just waiting for there to be a little red error message, but I don't think there is. Wow, if this was my real name, the text on my passport photo page would have to be microscopic.

for the first name

Coder100
firefish

@Coder100 The first name can be SOOOOO long

Bookie0

@firefish cool

firefish

@Bookie0 Well apparently the limit for (Both first name and last name) is 255.

Bookie0

great @firefish

Duvangamer3845

hey cod...haha...its strange... but... WHY THIS ONLY HAVE 6 UPVOTES???!!!!

Coder100

idk, some weird algo @Duvangamer3845

firefish

@Coder100 lol you have 8888 upvotes

Duvangamer3845
firefish

@Duvangamer3845 LOL I HAVE 599 CYCLES

Coder100

wwat @firefish

Duvangamer3845

@firefish false

firefish

@Coder100 tenkyou

Duvangamer3845

@firefish ._.xd

firefish

@Duvangamer3845 xd ... bx

Duvangamer3845

@firefish

mesquite2234

I've been working on a python version of this for a while. It's hard on touchpad

Coder100

@TommyVictory yeah, your device can really slow your times

elipie

@Coder100 do it for space (once I did a space clicking test and got 32ms between the spaces)

Coder100

Oh wow ok I will @elipie

elipie

@Coder100 i trained on a game called parkour, its on roblox. Basic desc:
Explore this open world game by climbing buildings, getting levels and doing whatever you want.

Pretty underrated game if i do say so myself.
And really well made

Coder100

done! Thanks :) @elipie