Skip to content

Show HN: Know Your Pixels? A small browser game done with mediaqueries and JS

patrick-wied.at
10 pointspa79 comments
On HN

Comments

I get 0 points if I have it wrong. Is this is a bug or is that just how the algorithm works? It would be better to have a maximum score for each round and then basing the score depending on your browser size compared to the target.

+1 on this. I came very close on 3 different tries, but getting some points would have kept me hooked to get the perfect score.

pa7OP

the score depends on how long you need to get it right (within the countdown). the current points per round are calculated by the following formula: (100-(level+50)) * timeForRound/maxTimeForRound * 20 level can be (20|10|0) where 0 represents very hard and 20 represents easy. --- if there were always points no matter how far you're off the game would never terminate (unless the user decides to stop playing it)

That's actually really clever, I love it, especially the colour changing. It might be a good idea to display a hint to resize the browser to the displayed resolution on the first play, since Hackers tend not to read instructions.

At first, I thought it was about quick mental multiplication... but then I realized I had to be missing something.

Is it cheating when you put your browser over a Photoshop image displaying the rulers?

Remove the size displayed at the bottom right might make the game a bit more interesting....

pa7OP

done :) thought of just displaying it in "easy"-mode so beginners can get a feeling for the dimensions

It's really hard on mobile safari :-P

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.