HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by realPubkey | Hacker News Reader
Parent
Full thread
realPubkey
·
But it seems that the balls speed increases with a bigger are.
View on HN
teraflop
·
From what I can see from a quick glance at the code, you have the causality backwards. Each bounce adds a small random variation to each ball's velocity, and if one of them randomly ends up moving faster, then it will tend to gain more territory.
throwup238
·
I think the changes to speed are random:
https://github.com/vnglst/pong-wars/blob/main/index.html#L16...
Reply on news.ycombinator.com