darkf / darkfo

DarkFO, a post-nuclear RPG remake (of Fallout 2)
Apache License 2.0
135 stars 12 forks source link

Refactor code to use es6 #101

Closed darkf closed 6 years ago

darkf commented 6 years ago

ES6 brings a lot of nice things like arrow functions, for..of, promises, etc. We should be using them now.

A lot of the callback hell spaghetti can be replaced with promises (which as a huge benefit makes our asynchronous code composable, and will replace monsters like the image loading stuff -- we can use Promise.all instead).

darkf commented 6 years ago

Duplicate of #24, closed.