Hasn’t been mentioned before: try this on a phone. It uses the gyroscope for control and it quickly becomes second nature to balance/guide the square around the screen. Also a very nice and rewarding discovery process, as it starts out with squares speeding by, until you realize it’s the tilt of your phone that is causing it. Congrats, super fun!
Kind of disturbing that Chrome just provides gyroscope data without any notification to the user.
Show HN: I taught my little brother JS, and he made this videogame in a week
101–110 of 285 posts
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#102Hasn’t been mentioned before: try this on a phone. It uses the gyroscope for control and it quickly becomes second nature to balance/guide the square around the screen. Also a very nice and rewarding discovery process, as it starts out with squares speeding by, until you realize it’s the tilt of your phone that is causing it. Congrats, super fun!
Or your Macbook Pro if it originally came with an HDD. Apparently the device orientation API can utilize the triaxial accelerometer that Apple used for drop detection. Really neat experience tilting my laptop around like a mad man.
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#103Earlier quoted context omitted.
Kind of disturbing that Chrome just provides gyroscope data without any notification to the user.
What would one feasibly do with this data? I guess an app could tell if someone is holding their phone in their had, and maybe put together a pedometer bases on gyroscope input. Maybe a concern if a app has access to gyro input over a period of days. But as long as it's only for actively open apps and web pages I don't really see much harm.
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#104Earlier quoted context omitted.
Kind of disturbing that Chrome just provides gyroscope data without any notification to the user.
How is this disturbing at all? Do you get disturbed that websites know your mouse pointer location?
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#105That it? Presume I use the arrow keys OK, I pick up the other blocks.. Oh, I do like the inertia and the smaller points give me more points wakes up screaming at 3am as the red terminator block endlessly hunts me down
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#106Finally, one of these stories that didn't make me feel like an utterly talentless moron. This feels like what someone might be able to learn how to do in a week, but so often it seems like what you see here are 10 year olds writing real time ray tracing engines that use deep learning for some reason, and have source code that just happens to be a radiation hardened quine.
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#107Earlier quoted context omitted.
The APIs powering this are in the process of being heavily restricted or removed altogether -- if you think games like this should exist, you should voice your concern here: https://github.com/w3c/deviceorientation/issues/57 .
If the app doesn't want to ask permission before gathering my data, they can pound sand.
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#108Earlier quoted context omitted.
Or your Macbook Pro if it originally came with an HDD. Apparently the device orientation API can utilize the triaxial accelerometer that Apple used for drop detection. Really neat experience tilting my laptop around like a mad man.
That's…quite surprising. It's a cool feature, but I'm afraid that it's just another surface that can will be used for browser fingerprinting.
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#109Like most everyone else, I was impressed. Way more interesting than I first thought possible with such a minimal game. The little red guy made the difference.
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#110Earlier quoted context omitted.
Kind of disturbing that Chrome just provides gyroscope data without any notification to the user.
What would one feasibly do with this data? I guess an app could tell if someone is holding their phone in their had, and maybe put together a pedometer bases on gyroscope input. Maybe a concern if a app has access to gyro input over a period of days. But as long as it's only for actively open apps and web pages I don't really see much harm.
https://bugs.chromium.org/p/chromium/issues/detail?id=421691
Browsers have added rate limiting to mitigate this threat. (Prior to that, my former team in Google Ads added our own rate limiting to the gyroscope API we provided for ads.) The risk now seems pretty minor, but I wouldn't be shocked if someone clever still managed to find some way to abuse it.