Lurker News

Comments (85) 23 threads

Show all comments

Showing thread 2 of 23

tristanlabbe#
Siiick!!
bicknergseng#
So awesome. Spent 10 min blowing the hell out of hn. Now instead of raging against trolls I can simply blow them up.
alptrv2 replies#
Just curious, why it so faster in Safari then in Chrome?
_jb1 reply#
I'm kinda sure it has to do with hardware acceleration.
balloot1 reply#
Would totally make sense given it works best in the two browsers most closely tied to the underlying OS.
plehoux#
I was totally impress by the speed of IE 9 running in a virtualbox instance on my macbook pro. Times they are changing!
plehoux1 reply#
My guess is that Safari rendering system use hardware acceleration and Chrome doesn't.

The bottleneck here is not javascript, it is the browser rendering system when applying all those css 2d transform.

TazeTSchnitzel#
Yep. Safari runs a 3D CSS demo/benchmark/unrealistic-stress-test I made much smoother than Chrome.
septerr#
Thanks!
mozillarewind1 reply#
In Firefox 13, the explosions don't correspond to the clicked locations/where the bombs are placed.
plehoux#
I'm not using jquery and I had a lot of problems getting the position and offset of click and elements. I guess it still need more work.
mortenjorck1 reply#
Great fun.

A couple of suggestions, speaking as a front-end designer / occasional indie-game artist:
- I don't know how you're calculating it, but consider adding a bit of randomness to the effect radius. This way, you won't be blasting perfect circles each time.
- If keeping the graphics CSS-only isn't a priority, consider some sprites! If you need a sooty blast scar or maybe a simple explosion sprite, I'd be glad to lend a hand.

plehoux#
Some randomness would effectively be great to add! As for the sprites, I really wanted to focus on font and simplicity. It is much more about the chaos of many destructions, than about a single explosion.

I might add different velocity depending on the mousedown event duration. The longer you press, the bigger the explosion get.
Tks for your comments!

hoprocker#
Seems like this is calling out for a ClojureScript implementation, too.