My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
171–180 of 493 posts
Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#172Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#173Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#174most of the feedback i'd want to give has already been given though... e.g. the attack charging confused me a bit until i worked it out by inference.
the animations are probably the highlight of this for me. they add some character nicely. adding more elements to show the attacks in progress beyond the colour changes would be a nice way to improve this.
i would suggest removing 0 from the rng for the math problems. occasionally you can get 0 + number which feels like a cheat almost. also maybe forcing the numbers to always be in double digits for the addition problems? he seems to be aware how to do this from looking at how the divide by zero is avoided.
another small thing would be to disable new input whilst the attack sequence is running... although again others have mentioned that.
----
overall this is impressive and interesting to see. i taught myself to write code starting when i was 8 using qbasic and its help file, then starting with visual basic when i was 11 and C when i was 12 - it was a different time, and different tools with different challenges, but i think any early start is helpful, especially if you have to work things out for yourself.
this game reminds me of some of my own early efforts, although rather than wrangling the complexity of a modern browser environment and language, i was wrangling with the lack of documentation and learning materials for logic, maths and graphics.
today i am the technical director of a games company with a cv littered with AAA, mobile and VR games. if your son eventually decides to choose this sort of career, i expect this kind of early work will pay huge dividends.
good work.
Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#175Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#176You haven't made any of the mistakes that I see from professional web developers. (I'd critique the use of onclick, except you've found the one context where it's acceptable (even sensible!) to use onclick.) Using the Orca screen reader, the game is almost completely playable. Some feedback: • I can't "see" when exploding star is charged up, except by clicking it every turn. • I can't tell whether I've got the answer…
Interesting! I tried to guide him towards the simple approach - eg: alert() is way simpler than making some sort of modal with HTML/CSS, etc. But now that I think about, that approach (i.e. just use what the browser provides) also results in a more accessible result.
I appreciate the detailed feedback here. This is awesome! I'm going to leverage this to have a discussion about accessibility with my son. It's something we haven't taken active consideration for through this process.
Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#177Earlier quoted context omitted.
We've had a long journey. Main thing is that I realized that my son doesn't learn enough from open ended tools like Scratch. So we tried a bunch of other things. He started with Scratch JR & Scratch. Then we switched to Tynker Jr & Tynker. Which provide challenge oriented block based games. Teaches loops, functions, etc. Then we switched to CodeMonkey, which provides challenge oriented block & code based games (coffe…
I started around 8 or 9 as well. Back then Javascript wasn't really around (was still called DHTML), so I started with Liberty Basic and shortly after that AutoIt, which I loved for a long while and would recommend if he wants to start doing things on the computer - simple to write but doesn't abstract the concepts of the machine away. Your son has a seriously advantageous head start on life. Kudos!
Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#178It gave me a lifelong obsession with programming, and I'm still a principal engineer today
Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#179Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback
#180I love it! I'm going to show this to my 6 yo tonight. I know for a fact she'll enjoy it.