Article: Article: Converting an existing aircraft - Basics

In this article, we'll cover the conversion of an existing aircraft from XLua to JetScript. The newly converted aircraft will have exactly the same functionality as before.

In a future article, we'll delve deeper into some more advanced changes to improve performance of the running code, and show how JetScript can be used to obtain higher framerates than some other solutions.

1. File organization and naming

JetScript and X-Lua use very similar organization of their files; to start, I simply renamed all the .lua files into .js files. These won't run as such; we'll have to go modify code.

2. Converting Dataref APIs

3. Converting Command APIs

4. Converting events, and addEventListener

TODO