With the finalisation of es2015, it'd be great to be able to write impact
modules using es2015. There are a few advantages to it.
import Entity from '../../impact/entity';
class Player extends Entity {
constructor(x, y, settings) {
super(x, y, settings);
this.something = true;
}
}
export default Player;
If we used a bundler, like
rollup, our game's source code
would only contain the pieces of code being used and nothing extra. On top of that, we could also potentially use any npm module easily.
import Entity from '../../impact/entity';
import axios from 'axios';
class Player extends Entity {
// ...
// This is a bad example, but that is okay
kill() {
axios.post('/post/score/to/some/database', {
score: this.score,
name: this.name
})
.then(doSomething)
.catch(errorHandler);
super.kill();
}
// ...
}
It's also future proof, as any modules we write, we could also import into other
projects quite easily.
My second wish for Impact is the use of a WebGL renderer such as PIXI.js. I
think that the performance of Impact would be greatly increased if we moved away
from the Canvas2D API.
All that being said, I still like the engine, and there's good reason that it is
still #2 on
https://html5gameengine.com. The community is still active and
helpful and contrary to popular belief, Dominic is still around - though AFAIK he
is working pretty exclusively on Ejecta.