AssemblyScript / examples

A collection of AssemblyScript examples.
https://assemblyscript.org
MIT License
287 stars 50 forks source link

n-body test fails #31

Open houd1ni opened 6 months ago

houd1ni commented 6 months ago

image

houd1ni commented 6 months ago

Also after dirtyhacking 184 line to excess initializer, after building wasm, I couldn't launch the test yet: image

houd1ni commented 6 months ago

Looks like the readme is wrong, and instead of npm run asbuild we should do npm run build. After that, I still cannot launch the tests with next error (including the warning of npm run build): image

houd1ni commented 6 months ago

Looks like I had to var system = new NBodySystem([Sun()]); instead of empty var system = new NBodySystem([]);. No types about this, okay. Now my machine is infinitely powerful: image