News for hackers. Stuff that matters.
Re:A demonstration of browser events used to monitor online ... by ogig on Friday November 18, 2016 @05:55AM (#12985855)
This reminded me that notch web game[1]. Both kept me interested and I find them a very pleasant form of art.

[1] http://game.notch.net/drowning/

Re:A demonstration of browser events used to monitor online ... by pawadu on Friday November 18, 2016 @06:25AM (#12985981)
Surprised no one has mentioned Cookie Clicker yet, which I think was what inspired notch to write that game: http://orteil.dashnet.org/cookieclicker/

Notch's game was written in Dart and the source code is simple and elegant:

http://ludumdare.com/compo/ludum-dare-29/?action=preview&uid...

Re:A demonstration of browser events used to monitor online ... by Ph0X on Friday November 18, 2016 @02:39PM (#12989473)
Candy box [1] was actually the original IIRC, or at least the one that came before the drowning and cookie clicker and was the inspiration for them. Also check out Candy Box 2 [2] which is honestly a full game.

[1] http://candies.aniwey.net/

[2] http://candybox2.net/

Re:A demonstration of browser events used to monitor online ... by darrelld on Friday November 18, 2016 @11:39AM (#12987993)
Thanks for effectively killing my productivity with that cookie clicker game.
Re:A demonstration of browser events used to monitor online ... by henrikschroder on Friday November 18, 2016 @07:01PM (#12991038)
Cookies are stupid, kill monsters instead in Clicker Heroes!

https://www.clickerheroes.com/

(Once you understand the meta-game and the meta-meta-game, it becomes seriously addicting)

Re:A demonstration of browser events used to monitor online ... by simik on Saturday November 19, 2016 @09:52AM (#12993702)
Finally, a use for my triple-click mouse button!
Re:A demonstration of browser events used to monitor online ... by NTripleOne on Monday November 21, 2016 @04:56AM (#13004271)
Coolermaster Inferno, by any chance?
Re:A demonstration of browser events used to monitor online ... by supernumerary on Friday November 18, 2016 @12:04PM (#12988176)
Reminds me of Vito Acconci's "Theme Song" from 1973: https://www.youtube.com/watch?v=mAf6zKRb1wI
Re:A demonstration of browser events used to monitor online ... by TheSpiceIsLife on Friday November 18, 2016 @05:12PM (#12990527)
Wait till you try Clicking Bad

http://clickingbad.nullism.com/

Re:A demonstration of browser events used to monitor online ... by smoyer on Saturday November 19, 2016 @04:34PM (#12995815)
Making and selling Meth is surprisingly addicting.
Re:A demonstration of browser events used to monitor online ... by i336_ on Friday November 18, 2016 @11:21PM (#12992053)
For anyone curious...

  Game.ClickCookie(null, 100);
Gives you 100 cookies.

There is no limit to the number you can input.

Re:A demonstration of browser events used to monitor online ... by catshirt on Friday November 18, 2016 @08:26AM (#12986554)
reminded me of The Stanley Parable.

if anyone was humored, intrigued, or moved by either this or Notch's "drowning".... you will love The Stanley Parable. don't do any Googling or reading on it before you play though. go in blind. i wish i could play it again for the first time.

The Stanley Parable is literally one of my favorite things ever.

Re:A demonstration of browser events used to monitor online ... by dotancohen on Friday November 18, 2016 @08:32AM (#12986585)
I have no idea what the Stanley Parable is. So without googling it, how should one find it to play?
Re:A demonstration of browser events used to monitor online ... by LolWolf on Friday November 18, 2016 @08:32AM (#12986588)
Go buy it on Steam!
Re:A demonstration of browser events used to monitor online ... by MyNameIsFred on Friday November 18, 2016 @08:34AM (#12986599)
Steam.
Re:A demonstration of browser events used to monitor online ... by Cafey on Friday November 18, 2016 @08:35AM (#12986603)
It really was amazing especially that part where .... nah I'm kidding! not gonna spoil it for everyone it's too good :D
Re:A demonstration of browser events used to monitor online ... by m3rc on Friday November 18, 2016 @11:19AM (#12987796)
This is fantastic. I got so caught up in trying to advance through the stages I ended up dead before i even knew it. It seems dumb to have not seen that coming but you seriously do get caught up in the small details of each requirement for each advancement that the big picture sort of fades away.
Re:A demonstration of browser events used to monitor online ... by fisherjeff on Friday November 18, 2016 @11:57AM (#12988135)
> I got so caught up in trying to advance through the stages I ended up dead before i even knew it.

Who doesn't these days?

Re:A demonstration of browser events used to monitor online ... by axelfreeman on Friday November 18, 2016 @08:26AM (#12986556)
I had a lot of fun automate this game and see the results.

setInterval(function() {document.getElementsByTagName("a")[Math.floor(Math.random() * document.getElementsByTagName("a").length)].click()}, 5000)

Re:A demonstration of browser events used to monitor online ... by drake01 on Friday November 18, 2016 @09:06AM (#12986802)
or may be this: window.setInterval(function(){ [].forEach.call(document.querySelectorAll('a'), function (el){el.click();});},500)
Re:A demonstration of browser events used to monitor online ... by jzig on Friday November 18, 2016 @04:10PM (#12990100)
It's funny to see the different variations. I used: `var x = setInterval(() => { for (element of document.getElementsByTagName('a')) { element.click() } }, 1000);`
Re:A demonstration of browser events used to monitor online ... by Roritharr on Friday November 18, 2016 @07:05AM (#12986150)
My desire to powergame this made the ending all the more tragic. I should rethink a few things i guess.
Re:A demonstration of browser events used to monitor online ... by kayge on Friday November 18, 2016 @04:50PM (#12990366)
I wrote a python script to play it for me. Not sure what that says about me :)
Re:A demonstration of browser events used to monitor online ... by i336_ on Friday November 18, 2016 @08:58PM (#12991574)
Got it!

For those of you who want to play the game without the delays:

- Open drowninginproblems.dart.js in the Sources tab

- Verify you can type in the .js file; if you can't, right-click, Add Folder to Workspace, add any/new empty folder

- Change the ">" to a "<" on line 3753 so it says "if(x<1)this.Hk()" and ^S

Seems to work. The JS debugging in devtools nowadays is awesome, this is first time I've ever seriously used it. Imagine if we were still stuck with IE6 and Notepad. lol

For anyone who wants to play around, line 6950 in :formatted is where to start. this.zo.Fq seems to have the delay value in it, but I was unable to figure out where this came from.

-

Also, here's a simple oneliner to autoplay the game - which works equally well regardless of whether you do the above (in fact it looks really cool with the percentage counter left in):

  i = window.setInterval(() => {document.querySelectorAll('a').forEach(a => 
   { a.click() })}, 1200);
Has no fancy features like click randomization or smooth delays (it clicks all the buttons at once, every 1.2 seconds) but this fits in one line.

  clearInterval(i);
Stops it.

Edit: I just noticed that the source code is actually available. Ah well.

Re:A demonstration of browser events used to monitor online ... by Desustorm on Friday November 18, 2016 @06:27AM (#12985990)
This was surprisingly moving! notch is truly talented.
Re:A demonstration of browser events used to monitor online ... by udkl on Friday November 18, 2016 @02:16PM (#12989302)
Great game. This is on the similar lines like the SIMS and both of them are different implementations of the 'life simulator' approach.