Re:ColorRun – Simple browser game about colors
by Kissy on Sunday August 17, 2014 @09:34AM
(#8189336)
I think the game has been updated, now the opacity of both colors are the same (255) but you can sum R, G and B parts. The highest will be the brightest.
Re:ColorRun – Simple browser game about colors
by dalbotex on Sunday August 17, 2014 @11:29AM
(#8189569)
function c(i,j){return $("#color-"+i)[0].getContext('2d').getImageData(0,0,1,1).data[j]}
setInterval(function(){$("#color-"+(1+(c(1,0)+c(1,1)+c(1,2)<c(2,0)+c(2,1)+c(2,2)))).click()},1)
Re:ColorRun – Simple browser game about colors
by dylanz on Saturday August 16, 2014 @06:33PM
(#8187808)
Because this is "hacker"news and people here like to reverse engineer things! Also, great work with the game. It's really fun and quite an interesting mind game once it starts getting faster and faster. I agree with the mobile app sentiment... it would be a fun game to play on a commute. Great job!
Re:ColorRun – Simple browser game about colors
by darkstar999 on Saturday August 16, 2014 @07:00PM
(#8187881)
Blast! I came to the comments to post nearly the same code. Thanks though, yours is slightly better. I didn't know about .css(). It would be interesting to see a pure javascript implementation.
Re:ColorRun – Simple browser game about colors
by Gracana on Saturday August 16, 2014 @11:29PM
(#8188454)
Surprisingly fun. Suggestion: Take a big chunk out of the timer when the wrong choice is clicked, so a sense of urgency is created instead of immediately ending the game.
Re:ColorRun – Simple browser game about colors
by bencoder on Saturday August 16, 2014 @06:34PM
(#8187817)
Got to 938 points on my first go. Discovered you can also use left and right arrow keys, which is much more efficient and got me to 1566 on my second go. Thanks for the game
Re:ColorRun – Simple browser game about colors
by Zarel on Saturday August 16, 2014 @06:51PM
(#8187856)
Hah. I got to 896 using a broken laptop trackpad. When I discovered left and right arrow keys, I started averaging 30 because I kept on tapping the wrong direction.
Re:ColorRun – Simple browser game about colors
by lukaszmtw on Sunday August 17, 2014 @03:56PM
(#8190262)
Hi! Probably you don't know, but we are only 15 and 16 years old. If you enjoyed this game you can make donation to our bitcoin address so we can make another fun projects: 1EgxGUYrvrkHRYMJFaxrReVsGSukJfT3Yb Thank you guys for all help! :)
Re:ColorRun – Simple browser game about colors
by k-mcgrady on Saturday August 16, 2014 @06:14PM
(#8187746)
Surprisingly fun game - good work! Made it to 204 points on my first play. No idea if that's any good. It would be nice to have some sort of indicator so I know how good it is (if you don't want to do a leaderboard maybe calculate an average score?).
Re:ColorRun – Simple browser game about colors
by christiangenco on Saturday August 16, 2014 @08:59PM
(#8188186)
I thought midway through playing this that it would be another CSS history hack, so I started answering incorrectly to make sure my score went down (which it did).
Is there a better way to figure out if a game is trying to hijack my history?
Re:ColorRun – Simple browser game about colors
by michaelmior on Saturday August 16, 2014 @09:55PM
(#8188293)
Why is that? If you assume each side is pointing to the same link, but with different styles for visited and unvisited, the colours will always be different.
Re:ColorRun – Simple browser game about colors
by enhdless on Sunday August 17, 2014 @12:15AM
(#8188531)
Fun, but I'm disappointed that I'm limited to touch instead of clicking on my touchscreen laptop (Lenovo Yoga 13). This only seems to be an issue when I use Chrome/Opera.
Re:ColorRun – Simple browser game about colors
by mcintyre1994 on Sunday August 17, 2014 @11:45AM
(#8189603)
You won't be able to avoid clones which is probably why you're being down voted, but fwiw it works really well with a touch screen and would make a great app.
Is there a better way to figure out if a game is trying to hijack my history?
Minor: In the gameover pop-up the social buttons only show the facebook logo, though the links point to fb/twitter/plus