Live data from Hacker News

My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

armaansahni.com

71–80 of 493 posts

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#71
post #24

Great work, I bet you're a very proud parent! Echoing the other comment - as a tired dad, I struggle with the Math questions :)

As a parent, I'm very proud.

As a programmer, I'm surprised - I can say a few words (eg: "look into css background styles") and he can say it to Gemini and slowly figure out stuff on his own.

As a test player of this game - I don't want to think so much, but if it means he'll learn some math in the process, I'll do it. :)

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#72

Nice work! I would suggest changing the blue font color so attacks are more easily readable

I've had a talk with him about color balance and contrast levels. Improving colors is on his plan for the next version.

Appreciate the feedback

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#75
Delightful! Goodness this brings back memories of making games in PowerPoint. Where there's a will and patience, there's a way. Anyway, I have hopefully actionable feedback!

1. When an attack lands, we play an attack animation, but I notice the HP is deducted before it even starts to play. It would be better to wait until the animation is over to reduce the HP, in time with when the "hit" visually occurs.

2. It seems my character had some sort of Magic Power building up for more powerful attacks, but I couldn't see the charge level, so it was hard to plan the more powerful moves. Some sort of visual indicator for which moves are ready to go would be great.

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#76
For those wondering, the current charge mechanic is shared amongst all attacks. You start with 0 "charge". Each time you click an attack button (regardless if it lets you attack or not) you gain 1 charge. If you have enough charge, the attack triggers and you're deducted its "charge" cost.

Throwing Star = +1, Cost 0

Shooting Star = +1, Cost 2

Blasting Star = +1, Cost 3

Exploding Star = +1, Cost 4

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#77

Nicely done. How much did dad/mom help?

From his past experience with HTML/CSS, he can already make a page, has VSCode, knows how to use VSCode to commit & sync. The big thing this time was that he had to learn a lot of JS and had to get much more proficient with CSS.

So my guidance was more of a set of hints as needed, for example "you want to boxes side by side, figure out how to do that using CSS" .. then he'd go away and talk to Gemini and ultimately Gemini would give him multiple approaches that he could try.

When it came to animation, I explained that there are many ways to animate (CSS, JS, etc) and guided him towards animated images. Basically, we "chatted" about a feature, I gave him some hints, then he went off and talked to Gemini for syntax and wrote the code. Many features he knew exactly what to do. If he wasn't sure, he'd have a discussion with me.

Basically, I was like a senior dev sounding board. He was the junior developer doing the work. Gemini was his Google/StackOverflow.

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#78
Fun game. Just a couple of nits:

1. I'd like some indicator of when a move is "charged up" instead of having to click on it.

2. In the dialog for the message "The move you want to use is not charged up yet.Click 'ok' and then select another move." the button actually says "close" not OK.

Overall well done though!

Re: My son (9 yrs old) used plain JavaScript to make a game, and wants your feedback

#79
post #19

Nicely done. How much did dad/mom help?

My guess would be quite a lot, since the artwork is not something a child would make despite it looking like its made for children.

Kids dad here. When it was time to do images, I figured something like photoshop would be way too much for him. So I found a browser based sprite editor. The 32x32 grid simplified things and actually helped him.

Then one day I explained how the animation worked in the Piskel app (it had layers and frames). I came back an hour later and he had that flying snake that absolutely blew me away. He originally had it at 4 frames we gave him feedback that he needs more frames to be smooth. He upped it to 8.

The graphics is where had the least guidance from parents. We were focused on the code/logic aspects.

Post reply on HN