Live data from Hacker News

Show HN: I taught my little brother JS, and he made this videogame in a week

s-poony.github.io

131–140 of 285 posts

Re: Show HN: I taught my little brother JS, and he made this videogame in a week

#131

Fun! Wonder how high people will go. 69 points.

Managed to get over 120. Because the red terminator can't cross the edges, but you can, the key is to use the edges as much as possible and to avoid going through the center unless you are lined up to get the food.

Re: Show HN: I taught my little brother JS, and he made this videogame in a week

#132
post #9

That's cool, also similar idea to a game I made some time ago for a lisp game jam https://orbaruk.github.io/ https://github.com/OrBaruk/squares-lgj

Your game is faster paced, I like it. One issue I noticed is that the red blocks can spawn right in front of your block, making it nearly impossible to avoid. Rage quit inevitable.

Re: Show HN: I taught my little brother JS, and he made this videogame in a week

#133
post #128

Nicely executed game. But looking at the source, the weird part is that it is half English, half French. It definitely doesn't look like the work of a single person. I also looked at the commit history and I liked the teaching comments. Clearly, there is a story behind that code. I suspect you did the first part together (moving square, ...) and that your brother played with it by himself later, adding the enemy, etc…

My code when i was kid was half english and half swedish, heck even today when i write simple "run once"-code they often have some swedish named variable.

Funny story from ~2005, a company developed a jvm for a special cpu and was aquired by a bigger company. After the aquasition 2 developers had to search the code base for two weeks after swedish swear words, they replaced them with the word of dandelion in swedish ("maskros").

What I want to say is that it is very common to mix english and ones native language.

Re: Show HN: I taught my little brother JS, and he made this videogame in a week

#134

Earlier quoted context omitted.

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.

With sufficiently high-frequency gyroscope data, it is possible to infer what a user types in with moderate precision. In some cases, it has even been shown to be possible to recover coarse audio data from the surrounding environment. 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 l…

> gyroscope API we provided for ads

Whaaaa?

Re: Show HN: I taught my little brother JS, and he made this videogame in a week

#135

Earlier 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.

Facebook has a patent for using gyroscope data in conjunction with location to know who you are facing with other people around to enhance friend suggestions.

You can also determine things like health and other physical characteristics, similar to gait detection.

Re: Show HN: I taught my little brother JS, and he made this videogame in a week

#136
post #128

Nicely executed game. But looking at the source, the weird part is that it is half English, half French. It definitely doesn't look like the work of a single person. I also looked at the commit history and I liked the teaching comments. Clearly, there is a story behind that code. I suspect you did the first part together (moving square, ...) and that your brother played with it by himself later, adding the enemy, etc…

My code when i was kid was half english and half swedish, heck even today when i write simple "run once"-code they often have some swedish named variable. Funny story from ~2005, a company developed a jvm for a special cpu and was aquired by a bigger company. After the aquasition 2 developers had to search the code base for two weeks after swedish swear words, they replaced them with the word of dandelion in swedish…

Even in a professional context it's reasonable to use the language your customer (business expert) is using. Beware of mapping technical terminology into another language! And if that means you write Swedish code, that's perfectly valid.

Re: Show HN: I taught my little brother JS, and he made this videogame in a week

#140
post #76

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!

Note: mobile Chrome but not Firefox.

Worked excellent in brave mobile as well. Actually fairly addictive
Post reply on HN