News for hackers. Stuff that matters.
Re:Portal game in CoffeeScript by eggbrain on Saturday May 26, 2012 @03:34PM (#4028128)
I know this is just a demo project, but I thought the game was broken at first, since the portal gun didn't seem to do anything. It isn't until the third level that you can actually use the portal gun, and then you can only use it on the non-boundary lines (as in, you can't use the ceiling or the walls).
Re:Portal game in CoffeeScript by arundelo on Saturday May 26, 2012 @06:57PM (#4028642)
I figured it was broken (on my browser) too, and I didn't know how to get to other levels. After seeing your comment I went back and saw that touching the rectangle with the yellow glow takes me to the next level. (On the first level this requires a jump, which is done with the up-arrow key.)
Re:Portal game in CoffeeScript by danneu on Saturday May 26, 2012 @08:07PM (#4028785)
I appreciate the information the author shared in the blog post instead of just linking us to a game without any context.

For instance, he points out that the source demonstrates how to use Box2Djs for physics, handling touch/multi-touch/accelerometer, and auto-resizing the canvas.

It went from something I'd play around with for a couple minutes to a bookmark & a repo I'm now following. Thanks for the extra effort.

Re:Portal game in CoffeeScript by gramsey on Saturday May 26, 2012 @06:36PM (#4028594)
Very clever implementation. One thing I would comment though is, it's rather irritating to have the figure constantly moving left or right. It think it would be better if the figure stopped once hands were released from the keyboard.

Not sure if that's the intended functionality, but that's what happens in Chrome for Mac Version 20.0.1132.17 beta.

Re:Portal game in CoffeeScript by mratzloff on Saturday May 26, 2012 @11:43PM (#4029132)
The entire game works properly for me in Safari for Mac. The figure only moves when you press AWSD or the arrow keys.
Re:Portal game in CoffeeScript by singular on Saturday May 26, 2012 @03:31PM (#4028122)
Very cool. But having issues in chrome/mac with the portal gun not shooting anything. Works fine in safari/mac.

Note: this applies even at and beyond the 3rd level where it is first useful.

Additional edit: I want to emphasise how very cool this. I wouldn't want anybody to think that my criticism is all I have to say about it. Great work!

Re:Portal game in CoffeeScript by jacktoole1 on Saturday May 26, 2012 @06:14PM (#4028549)
Working for me in Chrome/Mac (not disagreeing, just adding this if the author is trying to debug it. Or maybe he already has :) ).
Re:Portal game in CoffeeScript by kristianp on Saturday May 26, 2012 @08:17PM (#4028798)
ASWD have no effect for me. Chrome 19 Linux.
Re:Portal game in CoffeeScript by willlll on Saturday May 26, 2012 @05:58PM (#4028502)
"503 Over Quota This application is temporarily over its serving quota. Please try again later."

It is a shame he hosted this on a provider that has such limits.

Re:Portal game in CoffeeScript by justinhj on Saturday May 26, 2012 @08:02PM (#4028774)
Wherever he hosted it would have some limits. It's a learning project that made the front page of HN :)
Re:Portal game in CoffeeScript by ilaksh on Saturday May 26, 2012 @06:05PM (#4028527)
Its not giving me that. Did you try refreshing?
Re:Portal game in CoffeeScript by nfarina on Sunday May 27, 2012 @03:06AM (#4029513)
Amazing! It worked perfectly on my iPad and I was able to figure it out quite naturally. Really impressive for a "demo project."
Re:Portal game in CoffeeScript by veyron on Saturday May 26, 2012 @06:22PM (#4028564)
Absolute agony on the iPhone. But that's attributable to limited phone input (not to impugn the developer)
Re:Portal game in CoffeeScript by pacomerh on Sunday May 27, 2012 @03:46AM (#4029578)
Great flow, I'm going through the CoffeScript file and I'm loving how this was put together.