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

91–100 of 285 posts

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

#91
post #69

Wow... Thought I was going to play for 10 maybe 15 seconds... I've never played a game for that long... This is seriously good. If you released this game without "little brother" I would think this was one of those amazing minimalist games. Thank you so much for making this!!

I don't understand, am I missing something? You just pick up blue and teal blocks while a red block slowly chases you? Why are people so excited about this? I feel like I'm missing something.

Did you try it on the phone, using tilt? Other than that - yeah, that's all there is to it.

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

#92

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.

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

#94
post #62
post #24

Earlier quoted context omitted.

FYI the code is visible with "view source." How old is your brother? Has he programmed before? The code doesn't look like what someone with no programming experience could do in a week (unless perhaps working from a similar example as a starting point).

Right click and view source is probably the best thing about the web. You can learn so much. The source code for this game is simple and straight forward. I find it hard to come up with any critique - it looks like it's written by a pro! I like that he use objects instead of "classes". The game should adopt to window resize and aspect ratio.

[deleted]

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

#95
Congratulations to your brother and hope he continues to create and learn!

This demo reminded me of this tutorial livestreamed a few weeks ago: https://youtu.be/Z3OnwkPOfY4

While your brother's demo adds more advanced input and gameplay elements, I'm just curious whether it helped inspire him.

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

#96
post #25
post #10

So fun. I like the AI logic, if he wants a fun addition he should add more enemies as the score increases and implement something like the pac-man ghost logic so that they all behave differently: http://gameinternals.com/post/2072558330/understanding-pac-m...

He hasn't learned about arrays yet : every element of the game is its own global variable. But this is something I would love to implement with him !

For a reasonable number of enemies-- e.g., Pinky, Inky, Blinky, Dot-- global variables should scale just fine.

Maybe learn arrays if he wants to enter the realm of Robotron enemy count... :)

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

#98
post #69

Wow... Thought I was going to play for 10 maybe 15 seconds... I've never played a game for that long... This is seriously good. If you released this game without "little brother" I would think this was one of those amazing minimalist games. Thank you so much for making this!!

I don't understand, am I missing something? You just pick up blue and teal blocks while a red block slowly chases you? Why are people so excited about this? I feel like I'm missing something.

I appreciate the minimalism of the game. It has the concept of progression down well. More captured blocks increases the speed of the red block, making the game more challenging as you progress. The friction of the movement makes the controls just the right amount of challenging.

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

#99

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!

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.
Post reply on HN