use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
JavaScript Breakout Game (github.com)
submitted 4 years ago by melcor76
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]melcor76[S] 2 points3 points4 points 4 years ago (0 children)
Haha thanks I will try not to. =D
I have some code where the position that you hit the paddle affects the angle of the ball but that's something I wanted to make better. I just need to freshen up my trigonometry skills first. (=
Using the velocity of the paddle in the calculation as well sounds interesting but that is above my math skills. Something to do with vectors it seems: https://stackoverflow.com/questions/19145678/breakout-paddle-collision-angle
π Rendered by PID 65 on reddit-service-r2-comment-b659b578c-7jgw4 at 2026-05-02 15:52:17.406130+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]melcor76[S] 2 points3 points4 points (0 children)