Live data from Hacker News

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

armaansahni.com

141–150 of 493 posts

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

#144
post #26

Amazing. Younger people (and people new in any field) often think of intersting approaches without the blessing/curse of "best practices." The process for creating the game was very good and very logical way to learn a new field. I would recommend a couple of small things for the code. Variable names are usually ALL_CAPS if they never change (for instance const PI =3.142) and camelCaseForOtherVariables. snake_case_va…

Agree 100%. Since dad helped, I was expecting to see sprites sheets, or some JS classes for some OOP, etc. Was pleasantly surprised to see how "simple" the approach was for such fun output with a decent amount of variety.

He doesn't understand what a sprite is, or really the motivation behind sprite sheets. To him they're just animated images he made in a tool. Internally he switches the "costumes" of characters (terminology he got from Scratch I believe).

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

#145
post #96

I found it very satisfying when the opponent got a question wrong. Math is hard, even when you’re an awesome monster like a flying snake or black hole. I didn’t understand the “charging” mechanic. A little more explanation or some visual that shows charging would help. Pretty sweet game! Keep it up!

Appreciate the feedback!

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

#146
A tip to those playing: You don't have to wait for the enemy to attack before you go again. You can spam your attacks. Combat pauses while you answer the question so take your time doing the math, but you want to select your next attack very quickly so you can do more attacks than your enemy.

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

#149
post #50

Great game! I'm not sure what's happening when the opponent makes a move. Also not sure why i'm losing healthHP when I seemingly score points for getting a correct answer.

Its a turn based game, but turn order isn't enforced. So it gets confusing if you attack out of your turn.

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

#150
post #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!

Appreciate the feedback!
Post reply on HN