1 decade ago by bea
Hi! I'm trying to test my impact game on ejecta, but ... I'm not sure how to set index.js on ejecta. I have this code:
How I can run my game?
Thanks!
var w = window.innerWidth; var h = window.innerHeight; var w2 = w/2; var h2 = h/2; var canvas = document.getElementById('canvas'); canvas.width = w; canvas.height = h; ejecta.require('lib/impact/impact.js'); ejecta.require('lib/game/main.js');
How I can run my game?
Thanks!