-
Install
npm install snakesilk-engine snakesilk-xml-loader
-
Implement
import {Game} from 'snakesilk-engine';
import XMLLoader from 'snakesilk-xml-loader';
const myGame = new Game();
const loader = new XMLLoader(myGame);
loader.loadGame('./myGame.xml').then(entrypoint => {
myGame.run();
});