Lurker News

Comments (270) 108 threads

Earlier comments
lovasoa1 reply#
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 !
jancsika#
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... :)

rcarmo#
This thing is deceptively subtle and fiendishly addictive. Well done!
cowpewter1 reply#
Very nice. I had fun with it. Maybe a little description of the goals on the page underneath the play area would be good? Took me a while to realize picking up the red squares was actually reducing my score. I initially thought they were just meant to be more challenging to pick up since they moved.
zild3d1 reply#
I actually thought there was something really enjoyable about not have it super obvious and shoving pointers and instructions at you.

It felt fun to explore and learn what it is

beatgammit#
It might be nice to have something like:

Move arrow keys or tilt your phone. When I pulled this is on my phone, I thought it wasn't working until I saw that someone mentioned that tilting it worked.

nsxwolf2 replies#
Finally, 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.
wccrawford#
It seems his little brother understands how to properly scope a project while learning, and seems to have a decent handle on game mechanics design.

I'm super impressed, despite (and because of?) how simple it looks.

ams61102 replies#
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).

lovasoa#
My little brother is 15. He had programmed before, but only on his graphic display calculator.
z3t4#
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.

Load more comments