Show HN: I taught my little brother JS, and he made this videogame in a week
121–130 of 285 posts
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#122Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#123Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#124Hasn’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
#125Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#126That 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
#127Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#128But 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...
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#129Earlier 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.
Do MacBooks that shipped with an SSD not have the accelerometer?