Open mreinstein opened 6 months ago
On this page, it uses a factory style init: (from https://piqnt.com/planck.js/docs/body)
This one uses traditional new constructor: (from https://piqnt.com/planck.js/docs/hello-world)
new
Which one is correct?
On this page, it uses a factory style init: (from https://piqnt.com/planck.js/docs/body)
This one uses traditional
new
constructor: (from https://piqnt.com/planck.js/docs/hello-world)Which one is correct?