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.

Show HN: Play snake by moving your head

61 pointsby ml_basicsabout 5 years ago

12 comments

ml_basicsabout 5 years ago
Link to demo: <a href="https:&#x2F;&#x2F;paruby.github.io&#x2F;snake-face&#x2F;" rel="nofollow">https:&#x2F;&#x2F;paruby.github.io&#x2F;snake-face&#x2F;</a>
blotter_paperabout 5 years ago
This is cool!<p>I appreciate the printed direction under the video of my face, but I feel like it might have been a little bit easier for me to learn to direct it if there was also a face mesh drawn on the displayed camera frame as debug info. This has seemed to allow me to adjust easier to facial controls in the past, and other people I polled about the helpfulness of displaying such debug info to the end user seemed to overwhelmingly agree (polls were of about 20 people, and super unscientific -- this is essentially still anecdotal advice to be taken with a grain of salt, but I got literally no negative reactions).<p>As an example of how this could help learning, I jumped straight to the demo without really reading the instructions (hurpadurpa), and I foolishly assumed that you were just detecting head position in the frame and using the coordinates, rather than the direction my face was pointing, to determine control direction. It wasn&#x27;t until I looked at the code that I realised what I was doing wrong. I probably could have read more and picked up on this without diving into the code, but I also probably would have picked it up immediately if I saw a mesh of some facial landmarks (rather than assuming an invisible bounding box). I think smaller adjustments would be assisted as well -- the user can figure out how far off screen their face can go while still being a face way easier if you show them what you think looks like a face.<p>Another maybe-helpful-maybe-not thought: adding an additional direction indicator to the art in the main game screen might make it easier to get used to the controls as well, and let the user know exactly when they trigger a change in direction without drawing their eyes away from the action. This could be as simple as two pixels for eyes on the snake head.
评论 #22997175 未加载
sairamkunalaabout 5 years ago
You should rename the title to &#x27;snake game with free head streches&#x27;
fpopaabout 5 years ago
I did a similar thing, but used left &#x2F; right head tilting for scrolling the page.<p>Reading and peeling oranges became easier.
roll57about 5 years ago
There is a tutorial about that <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=UPgxnGC8oBU" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=UPgxnGC8oBU</a>
评论 #22994802 未加载
sleepychuabout 5 years ago
Very impressive! Callibration took a fair minute or two but I didn&#x27;t have to do anything complicated like show it all the different poses.<p>Fun couple of games. I had trouble getting it to recognise down but I think that&#x27;s because I can&#x27;t bend my neck forward and keep looking at the screen (glasses) to see the snake moving.<p>Also I am definitely team: Screen edge should wrap around!
评论 #22994811 未加载
thereyougoabout 5 years ago
Great way to discover muscles you didn&#x27;t know you had
jbverschoorabout 5 years ago
I think I need a beard for this to work.
xiphias2about 5 years ago
Lots of fun, but my head hurts a bit :)
评论 #22994957 未加载
nalloabout 5 years ago
Keep making these things for me. :)
caspxabout 5 years ago
Vero cool
syxabout 5 years ago
this is very nice and fun!