TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Portal game in CoffeeScript

74 pointsby necrodomealmost 13 years ago

8 comments

eggbrainalmost 13 years ago
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).
评论 #4028642 未加载
danneualmost 13 years ago
I appreciate the information the author shared in the blog post instead of just linking us to a game without any context.<p>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.<p>It went from something I'd play around with for a couple minutes to a bookmark &#38; a repo I'm now following. Thanks for the extra effort.
gramseyalmost 13 years ago
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.<p>Not sure if that's the intended functionality, but that's what happens in Chrome for Mac Version 20.0.1132.17 beta.
评论 #4029132 未加载
singularalmost 13 years ago
Very cool. But having issues in chrome/mac with the portal gun not shooting anything. Works fine in safari/mac.<p>Note: this applies even at and beyond the 3rd level where it is first useful.<p>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!
评论 #4028549 未加载
评论 #4028798 未加载
willlllalmost 13 years ago
"503 Over Quota This application is temporarily over its serving quota. Please try again later."<p>It is a shame he hosted this on a provider that has such limits.
评论 #4028774 未加载
评论 #4028527 未加载
nfarinaalmost 13 years ago
Amazing! It worked perfectly on my iPad and I was able to figure it out quite naturally. Really impressive for a "demo project."
veyronalmost 13 years ago
Absolute agony on the iPhone. But that's attributable to limited phone input (not to impugn the developer)
pacomerhalmost 13 years ago
Great flow, I'm going through the CoffeScript file and I'm loving how this was put together.