index.js 262 B

12345678910
  1. require('System');
  2. require('SpaceRPGGame');
  3. var canvas, system, game;
  4. document.addEventListener('JSContentLoaded', (event) => {
  5. canvas = document.getElementById('spacerpg');
  6. system = new System();
  7. game = new SpaceRPGGame();
  8. system.attach(game, canvas);
  9. });