Earlier quoted context omitted.
Note: mobile Chrome but not Firefox.
Not sure what you mean, but it works for me on ff/android. Nice game, well executed!
Show HN: I taught my little brother JS, and he made this videogame in a week
231–240 of 285 posts
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#232Hasn’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
#233Look 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...
Really well done and I like the brevity. Here are some ideas for revising the code: 1. There are two functions called "distance" and they're identical. Only the outermost appears to be needed. 2. As written, the game places variable and function names into the global scope. It doesn't matter for this game, but will be a problem for larger games. One idea would be to use the Immediately Invoked Function Expression (II…
Still a very good job for just a week of coding though.
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#234Earlier quoted context omitted.
But what if he wanted to turn it into a AAA FPS game with RTS elements in a persistent online world that supports millions of simultaneous users?
That was the next logical step during the early 2000s. Every bright-eyed college freshman on IRC was "recruiting" for his next awesome MMORPG idea.
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#235Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#236Look 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...
Really well done and I like the brevity. Here are some ideas for revising the code: 1. There are two functions called "distance" and they're identical. Only the outermost appears to be needed. 2. As written, the game places variable and function names into the global scope. It doesn't matter for this game, but will be a problem for larger games. One idea would be to use the Immediately Invoked Function Expression (II…
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#237Great job!
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#238Earlier quoted context omitted.
The gyroscope is a datapoint that can be used for fingerprinting. Plus it gives quite a bit of information about you: whether you are lying down, sitting, walking, etc.
doesn't this assume the user is walking around with the page open, the front tab, and the phone unlocked for a reasonably long period? which websites do I spend enough time on for that to be true? I don't generally walk and read
That's how I spend 10-ish% of my time on Hacker News
Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#239Re: Show HN: I taught my little brother JS, and he made this videogame in a week
#240I love that the red block doesn't understand the concept of wrapping. It reminds me of playing with my dog.
I was actually going to ask what the rationale behind this was. I found that because of this, the best strategy was usually to wrap around to distract the block. I personally felt like the game would have worked better without that, although hard to know without trying it.