Hacker News new | past | comments | ask | show | jobs | submit login

I assume that you're using C# given that the physics engine is BulletXNA. What process do you use to translate games to run in JavaScript?



I rewrote the whole runtime in CoffeeScript. I'm basically using the exact same C# data files, I simply wrote the equivalent of the .NET BinaryReader in JS (using the recent ArrayBufferView WebGL typed array thing) to read back my binary project & asset files. I then use Lua.js (https://github.com/mherkender/lua.js/) to convert the Lua scripts into JS at load time and mrdoob's Three.js (threejs.org) to render it all.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: