News for hackers. Stuff that matters.
Re:HTML5 game written in 0 lines of JS by jayflux on Friday November 22, 2013 @07:16AM (#6780351)
If you leave your ship in the far bottom right corner, you will never get killed
Re:HTML5 game written in 0 lines of JS by uzyn on Friday November 22, 2013 @11:13AM (#6781628)
In fact you can leave the ship anywhere in the game window. As long as you are not moving it, the collision detection does not work. (Anyone knows why?)
Re:HTML5 game written in 0 lines of JS by recon517 on Friday November 22, 2013 @12:16PM (#6782111)
Collision detector uses CSS hover effect. If you don't move your mouse, hover is not triggered.
Re:HTML5 game written in 0 lines of JS by chii on Saturday November 23, 2013 @02:27AM (#6785570)
sigh, it just goes to show CSS/HTML alone isn't ready for such computation quite yet.
Re:HTML5 game written in 0 lines of JS by Myztiq on Saturday November 23, 2013 @05:43PM (#6787742)
Actually.. There is a way to do it that I was in the process of creating for my personal CSS only game I made 2+ years ago. It involved having a div slide over the content with a specific hover event that would require the user to keep moving their mouse every X seconds or the you lose screen would cover the page.
Re:HTML5 game written in 0 lines of JS by OGC on Saturday November 23, 2013 @10:27AM (#6786195)
Sure hope this is sarcasm.
Re:HTML5 game written in 0 lines of JS by ldubinets on Friday November 22, 2013 @11:45AM (#6781858)
It works in Firefox 25 for me.
Re:HTML5 game written in 0 lines of JS by uzyn on Friday November 22, 2013 @11:50AM (#6781904)
Just gave it a try, you are right.

Collision detection however fails on Google Chrome 31 when the mouse pointer is not moving.

Re:HTML5 game written in 0 lines of JS by anonymfus on Friday November 22, 2013 @03:02PM (#6783360)
So Chrome don't recalculate :hover CSS pseudoclass when position of element changes, it does it only on mouse events.
Re:HTML5 game written in 0 lines of JS by kumarharsh on Friday November 22, 2013 @08:52AM (#6780664)
This is the ONLY useful comment in this whole thread. Thanks :P
Re:HTML5 game written in 0 lines of JS by kazagistar on Friday November 22, 2013 @06:24PM (#6784419)
Can't collect points then though.
Re:HTML5 game written in 0 lines of JS by err4nt on Friday November 22, 2013 @05:38PM (#6784221)
Hit the space bar a few times, lose the cursor, and there's nothing TO kill :D
Re:HTML5 game written in 0 lines of JS by woud420 on Friday November 22, 2013 @03:51PM (#6783646)
Or just press and hold the mouse. You dissapear. Wait a little bit, you win.
Re:HTML5 game written in 0 lines of JS by rcconf on Friday November 22, 2013 @06:49PM (#6784516)
scroll up and down to travel instantly and also avoid collision.