Show HN: I taught my little brother JS, and he made this videogame in a week
161–170 of 285 posts
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#162Look at the code guys [1]. I love it. This is simple. There is not a single line of bullshit. I hope he gonna become a great programmer and continue to make beautiful code like that. [1] https://github.com/S-poony/Ultra-Square-Catcher-USC-/blob/ma...
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#163Look at the code guys [1]. I love it. This is simple. There is not a single line of bullshit. I hope he gonna become a great programmer and continue to make beautiful code like that. [1] https://github.com/S-poony/Ultra-Square-Catcher-USC-/blob/ma...
As far as logic goes, I totally agree, but personal preference nit pick, from a code writer and reader perspective, I think all subproperty access (`hero.acceleration.x`) could be cached to a variable, or just operate on plain variables and assign property access after mutations and only manipulate objects as needed. It makes the code easier to write and read, IMHO, and I believe older engines had infinitesimal chang…
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#164Earlier quoted context omitted.
My code when i was kid was half english and half swedish, heck even today when i write simple "run once"-code they often have some swedish named variable. Funny story from ~2005, a company developed a jvm for a special cpu and was aquired by a bigger company. After the aquasition 2 developers had to search the code base for two weeks after swedish swear words, they replaced them with the word of dandelion in swedish…
Even in a professional context it's reasonable to use the language your customer (business expert) is using. Beware of mapping technical terminology into another language! And if that means you write Swedish code, that's perfectly valid.
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#165Hasn’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!
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#166Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#167That's impressive. Can you provide more info such as how old he is, did he have any kind of programming experience prior, and how did you go about teaching him?
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#168Earlier quoted context omitted.
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.
Do MacBooks that shipped with an SSD not have the accelerometer?
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#169Wow, the maths are more impressive than coding IMHO Bien joué Noé :)
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#170This impressive!! I love the gameplay. Are you guys from Québec or Europe? I noticed the french comments in the source code hehe